GDP_Spaceman
Zebranky food
Offline
Gender:
Posts: 23
SC2 for ever!!
|
Hi all,
i use the programm "DevC++ 4.9.8" to build the exe-file.
Compiler runs with no errors, only some warnings. But the linker post many errors like this:
Sternkontrolle.o(.text+0x111a):Sternkontrolle.c: undefined reference to `TFB_InitGraphics'
what can is do to solve this problem?
thanks for all help . . .
Spacy
|
|
|
Logged
|
|
|
|
chmmravatar
*Many bubbles*
Offline
Posts: 109
WHAT IS DONE IS DONE
|
Sternkontrolle.c? There's no Sternkontrolle.c, I don't think. Did you rename files? Anyhow, I don't think uqm compiles on devc++ at this point. Though honestly I haven't tried it myself. I believe only visual c++ 6 and 7 are officially supported at this point (but don't quote me on that).
|
|
|
Logged
|
|
|
|
GDP_Spaceman
Zebranky food
Offline
Gender:
Posts: 23
SC2 for ever!!
|
Sternkontrolle.c is the main c-file (starcon2.c)
And thats true, there is a VC++ projekt. But i don't have this software, and i don't want to buy it. DevC++ is free to use . . .
I think, there is a bug in my linker-configuration or somthing like this . . . but i don't know where I have the same problem with mingw
Hope anyone can help me
|
|
|
Logged
|
|
|
|
chmmravatar
*Many bubbles*
Offline
Posts: 109
WHAT IS DONE IS DONE
|
Wait, so you did change the file names? Or you didn't? That could be what's breaking it.
|
|
|
Logged
|
|
|
|
GDP_Spaceman
Zebranky food
Offline
Gender:
Posts: 23
SC2 for ever!!
|
I changed only the name of the main c file . . . . thats not the problem
|
|
|
Logged
|
|
|
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3874
We did. You did. Yes we can. No.
|
"SternKontrolle" == Deutsch (German) for "Star Control" Just to help out those non-German-speakers.
|
|
|
Logged
|
|
|
|
|
chmmravatar
*Many bubbles*
Offline
Posts: 109
WHAT IS DONE IS DONE
|
Well, I still don't think it's a good idea to rename any of the files. But anyhow, the problem is probably either that you aren't compiling all of the .c files, or your makefile is not correct.
TFB_InitGraphics is declared in src/sc2code/libs/graphics/gfx_common.h, but actually implemented in src/sc2code/libs/graphics/sdl/sdl_common.c. If your makefile doesn't take this into account, you're going to get the linker error. (Short answer: starcon2.o depends on sdl_common.o). There's many other instances of dependencies such as this.
|
|
|
Logged
|
|
|
|
GDP_Spaceman
Zebranky food
Offline
Gender:
Posts: 23
SC2 for ever!!
|
Yea baby yea . . . . IT WORKS
I found the bug . . . wrong compiler and linker options thx all for help
DevC++ run fine now
|
|
|
Logged
|
|
|
|