VS6 Linker looking for Include files?
-
I am compiling a project which I have modified to allow it to compile for Linux as well as Windows. All compiles ok, except in VS6, the compiler keeps complaining about missing header files. The headers it is looking for are the Linux ones which are ifdef'ed out (it is ignoring the ifdefs ) I have turned off precompiled headers, but this doesn't seem to have made any difference... This seems to be happening in a different 'stage' to the Compiling/Linking, as the executable is created ok. any ideas? Thanks... Stormblade
-
I am compiling a project which I have modified to allow it to compile for Linux as well as Windows. All compiles ok, except in VS6, the compiler keeps complaining about missing header files. The headers it is looking for are the Linux ones which are ifdef'ed out (it is ignoring the ifdefs ) I have turned off precompiled headers, but this doesn't seem to have made any difference... This seems to be happening in a different 'stage' to the Compiling/Linking, as the executable is created ok. any ideas? Thanks... Stormblade
which files is it looking for ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
I am compiling a project which I have modified to allow it to compile for Linux as well as Windows. All compiles ok, except in VS6, the compiler keeps complaining about missing header files. The headers it is looking for are the Linux ones which are ifdef'ed out (it is ignoring the ifdefs ) I have turned off precompiled headers, but this doesn't seem to have made any difference... This seems to be happening in a different 'stage' to the Compiling/Linking, as the executable is created ok. any ideas? Thanks... Stormblade
Storm-blade wrote:
which are ifdef'ed out (it is ignoring the ifdefs )
How are you doing that ? Post some code so that we can check.
Cédric Moonen Software developer
Charting control -
I am compiling a project which I have modified to allow it to compile for Linux as well as Windows. All compiles ok, except in VS6, the compiler keeps complaining about missing header files. The headers it is looking for are the Linux ones which are ifdef'ed out (it is ignoring the ifdefs ) I have turned off precompiled headers, but this doesn't seem to have made any difference... This seems to be happening in a different 'stage' to the Compiling/Linking, as the executable is created ok. any ideas? Thanks... Stormblade
Can you be more specific
_**
**_
WhiteSky
-
I am compiling a project which I have modified to allow it to compile for Linux as well as Windows. All compiles ok, except in VS6, the compiler keeps complaining about missing header files. The headers it is looking for are the Linux ones which are ifdef'ed out (it is ignoring the ifdefs ) I have turned off precompiled headers, but this doesn't seem to have made any difference... This seems to be happening in a different 'stage' to the Compiling/Linking, as the executable is created ok. any ideas? Thanks... Stormblade
-
Storm-blade wrote:
which are ifdef'ed out (it is ignoring the ifdefs )
How are you doing that ? Post some code so that we can check.
Cédric Moonen Software developer
Charting control#ifdef LINUX #include <sys/time.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/keysym.h> #else // LINUX #endif // LINUX
And LINUX is only defined when compiled under linux... -
which files is it looking for ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
General linux specific header files, needed to compile the code under linux.
-
Try build all or/and delete the old build files. Maybe there is an old version with the headers in it. If it doesnt help compile every file per hand to get the source of the message.:-X
Greetings from Germany
KarstenK wrote:
Try build all or/and delete the old build files. Maybe there is an old version with the headers in it.
Tried that :)
KarstenK wrote:
If it doesnt help compile every file per hand to get the source of the message.:-X
It doesn't seem to be coming from the compiler itself... (As I said the code compiles and links correctly). Something else is reading the source files and looking for just the #include's, and is ignoring #ifdef's etc... I thought it was the precompiled header stuff... but even without that it still does it.
-
#ifdef LINUX #include <sys/time.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/keysym.h> #else // LINUX #endif // LINUX
And LINUX is only defined when compiled under linux...Just to make a test: comment these preprocessor definition so you are 100 percent sure they won't interfere and recompile. If this doesn't work, then you probably forgot to put some of the include inside preprocessor definitions. If this works, then you probably declared LINUX somewhere and forgot to remove it. You can also see which file generates the error, so open the file and check the include part to see if everything is correct.
Cédric Moonen Software developer
Charting control