The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2024, 05:05:10 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Linker problem
« previous next »
Pages: [1] Print
Author Topic: Linker problem  (Read 2414 times)
GDP_Spaceman
Zebranky food
*
Offline Offline

Gender: Male
Posts: 23


SC2 for ever!!


View Profile WWW
Linker problem
« on: May 08, 2003, 01:48:19 am »

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

It's time for a german SC2 Smiley
Project page at http://www.gdp-gameware.de
chmmravatar
*Many bubbles*
***
Offline Offline

Posts: 109


WHAT IS DONE IS DONE


View Profile
Re: Linker problem
« Reply #1 on: May 08, 2003, 05:26:24 am »

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 Offline

Gender: Male
Posts: 23


SC2 for ever!!


View Profile WWW
Re: Linker problem
« Reply #2 on: May 08, 2003, 01:26:46 pm »

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  Roll Eyes
Logged

It's time for a german SC2 Smiley
Project page at http://www.gdp-gameware.de
chmmravatar
*Many bubbles*
***
Offline Offline

Posts: 109


WHAT IS DONE IS DONE


View Profile
Re: Linker problem
« Reply #3 on: May 09, 2003, 01:19:32 am »

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 Offline

Gender: Male
Posts: 23


SC2 for ever!!


View Profile WWW
Re: Linker problem
« Reply #4 on: May 09, 2003, 01:30:11 am »

I changed only the name of the main c file . . . . thats not the problem
Logged

It's time for a german SC2 Smiley
Project page at http://www.gdp-gameware.de
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3874


We did. You did. Yes we can. No.


View Profile
Re: Linker problem
« Reply #5 on: May 09, 2003, 02:08:31 am »

"SternKontrolle" == Deutsch (German) for "Star Control"
Just to help out those non-German-speakers.
Logged
miri
Guest


Email
Re: Linker problem
« Reply #6 on: May 09, 2003, 04:57:45 am »

Hi!

I got it working with mingw, and I advice you to try as well. It is also free of charge, and there are instructions available for it!

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/sc2/sc2/INSTALL.mingw
Logged
chmmravatar
*Many bubbles*
***
Offline Offline

Posts: 109


WHAT IS DONE IS DONE


View Profile
Re: Linker problem
« Reply #7 on: May 09, 2003, 05:06:08 am »

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 Offline

Gender: Male
Posts: 23


SC2 for ever!!


View Profile WWW
Re: Linker problem
« Reply #8 on: May 10, 2003, 05:04:35 am »

Yea baby yea . . . . IT WORKS  Grin

I found the bug . . . wrong compiler and linker options
thx all for help

DevC++ run fine now Cool
Logged

It's time for a german SC2 Smiley
Project page at http://www.gdp-gameware.de
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!