Command line compiling

BlitzPlus Forums/BlitzPlus Programming/Command line compiling

Phil Newton(Posted 2006) [#1]
I'm trying to use blitzcc from within a Blitz app (via CreateProcess), but I keep getting the error "Unable to open linker.dll".

I can compile Blitz apps using the built in IDE or Protean without any problems, so I'm pretty sure everything is set up correctly.

If I use the app from within Protean, it can call blitzcc and it works, but if I create an EXE and try it, it fails with the linker.dll error.

Any ideas on how to fix this? Thanks.


Phil Newton(Posted 2006) [#2]
I managed to fix the problem.

When calling the compiler from Blitz, adding the following before calling the compiler fixes the problem:

SetEnv("blitzpath", "your blitzpath")