Hi everyone,
first thanks to all of you responding to my question, I am really thankful
for that!
Michael, your hints made my day: I have modified some compilation
configurations and
now it works. In particular, the switch to /MD was most important. If I also
set warning level from 3 to 1, most of the warnings disappear (warning 4244
is disabled in addition).
Just for your information, /MD links the code against msvcr100.dll, while /MDd links it against msvcr100d.dll (debug version). These are 2 different runtime DLL and they cannot be mixed. The problem is that octave is compiled with /MD, so any code you want to compile with octave (whether in debug mode or not) must also use /MD.
Michael.