Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by Auradrummer » Wed Jan 28, 2009 5:53 pm
Hello guys,
I'm having a weird problem with 'undefined reference' in 'toolbox_stdafx.cpp'.
I'm receiving the message "undefined reference to `GetWorkingFileName(char const*, char*)".
Looking to the line of code is the function, I noticed that this is inside an ifdef condition that is
- Code: Select all
#ifdef _LINUX_VER
So, as I'm using Linux, I commented that #ifdef and now it works.
Someone can explain me why that _LINUX_VER isn't defined in my system?
There is some problem commenting it? (I guess no, because it is only to be compatible with another systems, right?)
I'm using Ubuntu 7.10.
Developing a racing game.
-
Auradrummer
-
- Posts: 132
- Joined: Sat May 17, 2008 9:17 am
by martinsm » Thu Jan 29, 2009 6:37 am
_LINUX_VER is not standart prepreocessor define. You need do define yourself for project.
If you want standart prepreocesor define to detect compilation under GNU/Linux, then either linux or __linux should be used (
http://predef.sourceforge.net/preos.html#sec17 )
-
martinsm
-
- Posts: 86
- Joined: Mon Dec 19, 2005 3:15 pm
- Location: Latvia
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 6 guests