Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VS6 Linker looking for Include files?

VS6 Linker looking for Include files?

Scheduled Pinned Locked Moved C / C++ / MFC
linuxquestion
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Storm blade
    wrote on last edited by
    #1

    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

    T C H K 4 Replies Last reply
    0
    • S Storm blade

      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

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      which files is it looking for ?


      TOXCCT >>> GEII power

      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

      S 1 Reply Last reply
      0
      • S Storm blade

        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

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • S Storm blade

          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

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Can you be more specific

          _**


          **_

          WhiteSky


          1 Reply Last reply
          0
          • S Storm blade

            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

            K Offline
            K Offline
            KarstenK
            wrote on last edited by
            #5

            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

            S 1 Reply Last reply
            0
            • C Cedric Moonen

              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

              S Offline
              S Offline
              Storm blade
              wrote on last edited by
              #6

              #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...

              C 1 Reply Last reply
              0
              • T toxcct

                which files is it looking for ?


                TOXCCT >>> GEII power

                [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                S Offline
                S Offline
                Storm blade
                wrote on last edited by
                #7

                General linux specific header files, needed to compile the code under linux.

                1 Reply Last reply
                0
                • K KarstenK

                  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

                  S Offline
                  S Offline
                  Storm blade
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • S Storm blade

                    #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...

                    C Offline
                    C Offline
                    Cedric Moonen
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups