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. including 2 user defined header files

including 2 user defined header files

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 4 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.
  • M Offline
    M Offline
    Mr Cully
    wrote on last edited by
    #1

    when i include more than 1 user defined header file eg #include "tcplib.h" #include #include #include "big.h" tcplib.h and big.h..... the second header file doesnt include in that it gives me errors saying its not included, any ideas on how to solve this? are you able to include more than one user defined header file? also getting this warning: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library

    C J A 3 Replies Last reply
    0
    • M Mr Cully

      when i include more than 1 user defined header file eg #include "tcplib.h" #include #include #include "big.h" tcplib.h and big.h..... the second header file doesnt include in that it gives me errors saying its not included, any ideas on how to solve this? are you able to include more than one user defined header file? also getting this warning: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Because you didn't check 'do not treat <'s as HTML tags', I cannot see what else you included. If stdafx.h is in there, it needs to be the FIRST thing you include, everything else after. I tend to include all the standard stuff first, then my own headers underneath. You can include as many as you want to. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      1 Reply Last reply
      0
      • M Mr Cully

        when i include more than 1 user defined header file eg #include "tcplib.h" #include #include #include "big.h" tcplib.h and big.h..... the second header file doesnt include in that it gives me errors saying its not included, any ideas on how to solve this? are you able to include more than one user defined header file? also getting this warning: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library

        J Offline
        J Offline
        John M Drescher
        wrote on last edited by
        #3

        Mr. Cully wrote: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library Do exactly what it says. Add /NODEFAULTLIB:LIBC to your linker settings and the warning will go away.. John

        1 Reply Last reply
        0
        • M Mr Cully

          when i include more than 1 user defined header file eg #include "tcplib.h" #include #include #include "big.h" tcplib.h and big.h..... the second header file doesnt include in that it gives me errors saying its not included, any ideas on how to solve this? are you able to include more than one user defined header file? also getting this warning: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          i guess the problem you are facing is that, tcplib is a file already in use by the linker as default library. Thats why you are getting a message use "/NO DEFAULT" tag in you progam settings. My suggestion is to change the name of your user defined file, tcplib.

          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