Hello!
I'm quite new to all this C world as I come from Java world. However I do understand compiling and linking and I know how to write simple C stuff.
I'm writing a program that is supposed to be an extension to a GIS software, so it's a DLL. CB does a fantastic job with autocompletion and everything, but I have a problem:
Compilation runs fine but linking never happens. I click a second time on the "build" button and the Log says:
-------------- Build: Release in PortillonV2 ---------------
Linking dynamic library: bin\Release\PortillonV2.dll
ld: dllcrt2.o: No such file: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
BTW, to export the symbols from my PortillonV2.dll, I use a definition file.
Now, I can't get past this. Notice I managed to get the dll using the command line, and it doesn't require the dllcrt2.o file... so why does ld ask for it when I use CB?
PS D:\Dani\workspaceC\Portillon\obj\Debug> ld -share -o Portillon.dll main.o dllcrt.o D:\Programmes\Kits\C\Lib\xgo32m.li
b C:\mingw\lib\libcrtdll.a ../../port.def
For completeness: I'm using mingw downloaded today 5/04/2007 as well as the 4/04/2007 CB build for Windows. And I'm running on Vista.
Any help would be greatly appreciated!
Thanks!
Mango!
EDIT: oooh my! I think I might have not posted this in the correct forum. If the moderators want to move it around, feel free to do so. Sorry for the inconvenience.