blitzCC problem

Blitz3D Forums/Blitz3D Programming/blitzCC problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

hi!

i tried to make a simple compiler using the blitzCC compiler.
when you run compiler.bb, the blitzcc will compile and run test.bb
when you compile the compiler.bb to an exe and run that, it won't compile the test program anymore!?
is there a solution?

thank you.

compiler.bb
blitzcc$ = "D:\Programme\Blitz3D"

CompileToExe("program.bb", blitzcc$)

Function CompileToExe(path$, blitzcc$)
blitzcc$ = Replace(blitzcc$, "/", "")
If Right(blitzcc$, 1) <> "" Then blitzcc$ = blitzcc$ + ""
ExecFile blitzcc$ + "Bin\blitzcc.exe " + Chr(34) + path$ + Chr(34)
End Function


test.bb
Print "Hello world!"
RuntimeError "Hello world!"
End