October 7, 2008 at 10:27 am #2915nubieParticipant
hi all, i want to ask some question,
how to solve some problem about libraries in c ?
cause sometimes i got some code and when i try it, it shows error
like this “unable to open include file’hack.h’.
and i realize it happen cause i don’t have file hack.h on my folder include.
Is there any way to fix it cause i had download file hack.h from internet and copy paste to folder include but after that it shows error again cause in file hack.h there are more another file must need, or i must had knowledge
about create my own libraries cause i think it’s very complex for me to do
Thank’s a lot and i’m need an advices about this. 🙂
October 7, 2008 at 10:38 am #20209RoleReversalParticipant
sounds like you are going down the right track. Basically find each *.h (along with asociated *.c) file that is missing and make sure the compiler knows where to find it. Once you’ve traced everything down it *should* compile.
I wouldn’t recomment trying to recreate the libraries yourself…..
October 7, 2008 at 10:59 am #20210AnonymousParticipant
Rather than waiting for compile-time errors, check your .c source files for #include directives.
That should at least give you a list of the headers you need. Don’t forget to check if there’s a README file in the source bundle 😉
October 11, 2008 at 4:42 am #20211nubieParticipant
Hi, this is a code that come from the ebook and i had try to modify this code in order that to running this code in my pc but it’s useless cause i failed and even i had download hack.h from koders.com it failed too because it’s a lot more include file i need to run this code,
int main(int argc, char * argv)
int port = 8080;
if (argc < 2)
printf(" %s [port]rn", argv);
targetip = argv;
if (argc >= 3)
port = atoi(argv);
if (argc >= 4)
output = get_http(targetip, port, argv);
output = get_http(targetip, port, "/");
if( is_string_in("Error 40", output ) ||
is_string_in("302 Object Moved", output ) ||
is_string_in("404 Not Found", output ) ||
is_string_in("404 Object Not Found", output ))
printf("Page doesn't Exist");
And also i want to know what can we do if got a c code that we don’t have enough include file in our system? that code must be can’t be compiled/running isn’t it?, or we can just download an include file that we don’t have like i do with a code above(but i failed)?, This question i ask if i got a code that don’t have any readme files and in a future if something happens i had prepared.
Thank’s a lot for a replies guys and i’m need an advices again, sorry 🙂
- You must be logged in to reply to this topic.