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