in reply to Re^7: inline c
in thread inline c

By gosh by golly

You are right on. I think that it was seeing the cygwin "link"
I removed that from the path and now it sees the correct linker
but it still fails with this error.

C:\Program Files\Microsoft Visual Studio\VC98\lib\msvcrt.lib : fatal error LNK1113: invalid machine type
NMAKE : fatal error U1077: 'link' : return code '0x459'

I have posted the nmake test output it since it is so long at:
http://volcanbaru.com/OSOP/monks/Monks2.txt
I have also posted the belarc for the computer it was run on
2.00 gigahertz AMD Mobile Sempron
I would have thought that it was x86 but now I am not so sure
I am going to reinstall everything on yet another computer
and try it.

I am open to any and all suggestions.

angel

Replies are listed 'Best First'.
Re^9: inline c
by almut (Canon) on Apr 24, 2007 at 13:07 UTC

    OK, one step closer... towards the edge of the precipice :)

    As to your new problem, I'm not sure. It could be a broken C runtime library, msvcrt.lib (for whatever reason... — Can you successfully build and run a simple "Hello World" type C program?), or a 32-bit / 64-bit mismatch among some components of the whole shebang. However, the latter is unlikely, as I haven't seen any mention of "64" in this entire thread.  Other than that, I have no idea. The use of options (e.g. -MD) seems right, and I'm pretty sure an AMD Sempron is x86 compatible...

    Anyhow, I'd wager there are other monks with more Windows expertise than I have, so you might want to start a new thread, in case you don't get any other replies within a reasonable time frame...  you wouldn't want to have this buried in some deeply nested subthread that only you and me have been following until now :)   Good luck anyway!

      Hi,

      I was able to compile a small hello world code in C with no
      problems. I will take a step back and write up the problem again and
      start a new thread. I am not even sure where to start. I
      will play with this for a while and see what I can learn by myself.
      It just can't be this impossible.

      Thanks for your insights, they are valuable to me.


      Angel

Re^9: inline c
by ikegami (Patriarch) on Apr 25, 2007 at 00:57 UTC

    In the Console in which you are running your make commands, be sure to run

    "C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.bat"

    to setup the appropriate environment variables.