-
Resources in Borland
I'm using the free command line compiler tools from Borland, and I can't figure out how to link a resource to my .exe file. The brc32.exe which comes with the compiler can compile the .rc files into .res files, but it won't link it to the .exe for me... anyone know what I have to do?
-
I ran into this same problem a while back. Here is what you need to use. Just make a batch file like I did and then run it like makeapp mysource.cpp where makeapp is you batch file containing this:
bcc32 -c -w- -O1 -tW %1
brcc32 -32 %1.rc
ilink32 -Tpe -aa c032win.obj %1.obj , %1.exe, ,CW32TINY.lib import32.lib, ,%1.res
del *.ils
del *.ilf
del *.ilc
del *.ild
del *.tds
del *.map
del *.obj
del *.res
the Del *.bla stuff at the end just takes away all those extra files I don't want, you may want/need them. I've attach the batch file I use for further study.
-
sorry, my batch file and stuff uses the TinyCRT stuff I got from the net. If you just want to use the native stuff that comes with the command lines tools use this.
bcc32 -c -w- -tW %1
brcc32 -w32 myrsrce.rc // I usually have it as %1.rc since my .rc file will ahve the same name as my source
ilink32 -Tpe -aa c0w32.obj %1.obj , %1.exe, ,import32.lib cw32mt.lib, ,%1.res