I am trying to rework some older code for Windows Vista and 7 (and other platforms as possible). I have almost all the source code (C and C++) but my developer did not make it clear which code was used to compile and link to make the 32 bit executable which I have.
I have been able to use Resource Hacker on my existing 32 bit executable to introduce a new company logo and release date and will make this into a self extracting executable using iexpress, nsis or Self extracting Archive utility 16.0 So far so good.
However, I would like to get a fuller understanding of my programme and ideally take it to other platforms including symbian and wonderware.
By using IDA pro on the .obj files that I have, I have been able to obtain a list of all the elements of source, INC and RC files used in the original compilation. However I am missing four out of thirty six referenced files. This means I may not be able to recompile and link - I have not tried to as yet.
I thought that another way of making progress would be with the 32 bit .obj and .res files which I have. (I also have a .ide file).Is there a way of using CodeBlocks to purely link the existing .obj and .res files.
I created a project and added the existing files. The .res file came up under Resources and I noticed that it was greyed out. The nine .obj files (and one .tr2 and one .td2 file) appeared under Others, again greyed out. CodeBlocks appears to need priming in the linker settings and search directories. I have used linker settings of:
C:\Programme Files\CodeBlocks\minGW\lib\libopengl32.a
libkernel32.a
libgdi32.a
libuser32.a
Search Directories of:
Compiler: the setting for my INC folder
Linker: as above i.e.
C:\Programme Files\CodeBlocks\minGW\lib\libopengl32.a
libkernel32.a
libgdi32.a
libuser32.a
Resource Compiler: the setting of my RC folder
On Build I am getting
["mingw32-g++.exe -Wall -g -IC:\2011sip\USR\BC\INC -IC:\2011sip\USR\BC\INC -c "C:\Documents and Settings\Dave\My Documents\2011sip\SIP\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe -L"C:\Programme Files\CodeBlocks\MinGW\lib\libopengl32.a" -Llibkernel32.a -Llibgdi32.a -Llibuser32.a -L"C:\Programme Files\CodeBlocks\MinGW\lib\libopengl32.a" -Llibkernel32.a -Llibgdi32.a -Llibuser32.a -o bin\Debug\SIP.exe obj\Debug\USR\BC\CWIN\OUT32\sipadv.res obj\Debug\main.o -lgdi32 -luser32 -lkernel32 -lgdi32 "C:\Programme Files\CodeBlocks\MinGW\lib\libopengl32.a" -lkernel32 -lgdi32 -luser32
mingw32-g++.exe: obj\Debug\USR\BC\CWIN\OUT32\sipadv.res: No such file or directory
mingw32-g++.exe: C:\Programme Files\CodeBlocks\MinGW\lib\libopengl32.a: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings]
Am I using the wrong settings?
Is there a way to only link using CodeBlocks?
If so how?
Should I use a different linker?
If so what?
HELP, PLEASE - it seems so easy in theory
Finston in a pickle