error with lib. that dont work
Posted: Wed Mar 12, 2014 6:36 pm
Hello, i am studing c: , and i try to do a simple library.
That is the Code:
#include <stdio.h>
#include "helloworld1.h"
#include "helloworld.h"
int main(int argc, char **argv)
{
sayName();
sayHello();
return 0;
}
helloworld.h is a library, but when i compile say that:
c:/test/HelloWorldApp/HelloWorld1/src/main.c:3:24: fatal error: helloworld.h: No such file or directory
the file and directori of helloworld.h is
c:/test/HelloWorldApp/HelloWorldLib/include/helloworld.h
in settings of HelloWorld1 i put:
in linker: Library Paths : ../bin and in libraries: HelloWorldLib
in compiler: include paths: ./include
what is wrong?
thanks!
That is the Code:
#include <stdio.h>
#include "helloworld1.h"
#include "helloworld.h"
int main(int argc, char **argv)
{
sayName();
sayHello();
return 0;
}
helloworld.h is a library, but when i compile say that:
c:/test/HelloWorldApp/HelloWorld1/src/main.c:3:24: fatal error: helloworld.h: No such file or directory
the file and directori of helloworld.h is
c:/test/HelloWorldApp/HelloWorldLib/include/helloworld.h
in settings of HelloWorld1 i put:
in linker: Library Paths : ../bin and in libraries: HelloWorldLib
in compiler: include paths: ./include
what is wrong?
thanks!