External Compilation Error Checking

Blitz3D Forums/Blitz3D Programming/External Compilation Error Checking

_PJ_(Posted 2009) [#1]
I misunderstood Blitz3DSDK I think, so I dunno, maybe this would be more suitable here?

http://www.blitzbasic.com/Community/posts.php?topic=85212

The reason for this, is I am attempting to make a form of Subversion / code organiser for Blitz3D projects which will hopefully tie-in to a patching routine.
It's not essential, but the compiltion-error checking may be a useful feature.


Charrua(Posted 2009) [#2]
hi

you have to call the blitzcc complier with the -c switch followed by the name of the .bb
for doing that, you have to have an environement variable called "blitzpath" with the blitz path!

on the command line: set blitzpath=c:\archivos de programa\blitz3d

if you type : blitzcc -h
it dump HELP

C:\Archivos de programa\blitz3d\bin>blitzcc -h
Usage: blitzcc [-h|-q|+q|-c|-d|-k|+k|-v|-o exefile] [sourcefile.bb]
-h : show this help
-q : quiet mode
+q : very quiet mode
-c : compile only
-d : debug compile
-k : dump keywords
+k : dump keywords and syntax
-v : version info
-o exefile : generate executable

the following listing are copied from a terminal (dos window), the first one with a .bb that includes a file not present and the secon comiled ok.

C:\Archivos de programa\blitz3d\bin>blitzcc -c ..\temp\prueba.bb
BlitzCC V11.0
(C)opyright 2000-2003 Blitz Research Ltd
Compiling "..\temp\prueba.bb"
Parsing...
"..\temp\prueba.bb":4:57:4:57:Unable to open include file

C:\Archivos de programa\blitz3d\bin>blitzcc -c ..\temp\prueba.bb
BlitzCC V11.0
(C)opyright 2000-2003 Blitz Research Ltd
Compiling "..\temp\prueba.bb"
Parsing...
Generating...
Translating...
Assembling...

C:\Archivos de programa\blitz3d\bin>

i think that you have to have a way to read the stdout output that send the compiler and analyze the texts it shows.

the -k and +k list all the keywords (decls included) so you could highligth any match. If you want (+k) you coul know the params asociated on the definition of this keyword.

Juan


_PJ_(Posted 2009) [#3]
Sorry Charrua, I only just saw this reply.

That helps a lot, really puts me on the right track at least.

Luckily I don't need to go into much detail just a simple True or False if it compiles OK or not. Should be enough to get going on with!