How do I include libraries properly in C ++? I used to do standard libraries in C ++ and in my own .h files.
I'm trying to include wxWidgets or GTK + in code :: blocks and / or the NetBIn C / C + + plugin. I have included all the libraries, but I constantly get such errors as the file was not found when it is clearly included!
An error: test1.cpp: 1: 24: wx / msw / wx .rc: No such file or directory:
: Yes the .h file library is included; What am I missing?
Do I have to import other things too? Is there a tutorial for this? Obviously my poor textbook has not prepared me for this.
First, the header file is not the same as libraries, the header is a C ++ text file, in which the things There are announcements, while a library is compiled, there is a container for binary code.
When you include the # header file, the compiler / IDE needs to know where to find it. Generally there is an IDE setting where the compiler tells you, or you can do it from the command line, usually using the -i switch, I think it is as if you were looking for header files in your IDE Path for is not set.
Comments
Post a Comment