Page 1 of 1

Problems with compiling

Posted: Mon Dec 20, 2004 11:38 am
by Black Widow
I have a modified version of anarchy.cpp that needs to be compiled, but whenever I try to compile it get the following errors:

Virtual GCC Compiler layer for Descent 3
Copyright 1999 Outrage Entertainment
Source: "c:\games\d3sdk\osiris\insanity.cpp"
Output: "c:\games\d3sdk\osiris\insanity.dll"
DLLinit: "C:\Games\D3sdk\osiris\dllinit.c"
Debug Info: C7
Warning Level: 3
DLL Type: Game Script
Using gcc.exe found in C:\Games\egsc-1.1.2\bin
Warning: C7/COFF Debug information not supported, using gcc default debug info
c:\games\d3sdk\osiris\insanity.cpp:47: idmfc.h: No such file or directory
In file included from c:\games\d3sdk\osiris\insanity.cpp:48:
c:\games\d3sdk\osiris\Insanity.h:44: osiris_share.h: No such file or directory
c:\games\d3sdk\osiris\Insanity.h:45: d3events.h: No such file or directory
Error compiling "c:\games\d3sdk\osiris\insanity.cpp"

All the files it saids are missing are right where the are supposed to be. Anyone know how to solve this?

Posted: Mon Dec 20, 2004 12:36 pm
by DCrazy
When you set up GCC, were you sure to properly set your include path environment variable to include the D3SDK's include directory?

Posted: Tue Dec 21, 2004 2:22 am
by Black Widow
I've just done that, and it works now, but it only compiles to a .o file.

Posted: Tue Dec 21, 2004 2:56 am
by Sirius
...which means it's not linking it.

I don't remember how the thing is used any more, but you may want to look at your command-line options. If D3Edit gives you those.

Posted: Tue Dec 21, 2004 5:49 pm
by DCrazy
You need to specify the location of the D3 libraries in your library path environment variable as well, or, like Sirius said, edit the command line options to include -l<library name> -l<library name> etc.