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
test.bb
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