Hi, iam running Dev-c++ on windows.. Everytime i make my own "file.h" and
#include "file.h"
the compiler complains about that line while i compile..
do i need a lib or something?
Hi, iam running Dev-c++ on windows.. Everytime i make my own "file.h" and
#include "file.h"
the compiler complains about that line while i compile..
do i need a lib or something?
What complaint does it make?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
"In file included from items_b0-001/main.c"
this one means???
Also two more errors.
"two or more data types in declaration of 'itemGet'"
i acctually dont get what this one is meaning. its declared:
extern int itemGet(struct oItems *itemLib, int index) //in the h file..
last error..
[]build error[] [items_b0-001/main.o] Error 1
That's just introducing the error to you, i.e., telling you where the error was detected."In file included from items_b0-001/main.c"
this one means???
I am not sure what is the actual error. You may want to post more code."two or more data types in declaration of 'itemGet'"
i acctually dont get what this one is meaning. its declared:
extern int itemGet(struct oItems *itemLib, int index) //in the h file..
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Exactly what it says: In the file included from (or by) ... main.c, something went wrong.
[quote
Also two more errors.
"two or more data types in declaration of 'itemGet'"
i acctually dont get what this one is meaning. its declared:
extern int itemGet(struct oItems *itemLib, int index) //in the h file..
last error..
[]build error[] [items_b0-001/main.o] Error 1[/QUOTE]
Not sure what the exact problem is here - you may need to post a small example that shows this problem.
But it's fairly clear that the problem is _IN_ your header file, not that it can't find your header file - so the problem is not with gcc or Dev-CPP as such, but with what you've got in your header files (or possibly what you HAVEN'T got).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Thanks, problem solved .. missing ";" was the problem..
hehe typical..