Log in

View Full Version : Can't find .h files


pmzq
23-01-2006, 17:14
Hello all,

I'm a TOTAL newbie to C programming....

I've got a source code from an online game...

It has a ticker inside so it calls upon every 30 secs...

Then you get new resources and stuff...

My problem is I have to compile the .C files..

But when I try this with Lcc-win32 on winXP it givs all errors that it can;t include .h files...

My question is if this problem is caused by the fact that I compile on winxP ?

The source may come from a Unix system..

Or shouldn't this make the problem ?

Hope to hear something soon

Greetzz pMzQ,

steven114
23-01-2006, 20:31
What headers are missing? What game is it? If it's a unix game, you're going to have a hard time compiling it on a Windows system. Maybe cygwin or msys could help (google them). You'll probably have to find libraries that it uses and install them too. Not a small task if you don't know what you're doing. If it is a Windows game, then by the phrasing of your question I'd guess that you have the source code to a game which you're not exactly supposed to have the source to. Besides being illegal, there's no way you're going to get it to compile without finding the right libraries. Chances are good you'll have an even harder time, since they won't have source available either.

If it's an open source game for Windows, you might have a chance. There should be build instructions available which list which libraries you'll need. Follow those or post more specifics if you need help.

Things that are especially useful:
Name of the game
Error messages (copy and paste!)

Be sure to read any READMEs that came with it!

pmzq
24-01-2006, 01:03
Hy there,

Thnx for the answering so far :)

I got it LEGAL :) it's open source it's called MyPHPpa..
It's an online mass multyplayer game.
When I try to compile some of the files
I get errors like
"Could not inlcude file <sys/time.h>
And a lot more of those...
Also some syntax errors...
But the README file with the source says as follows
--------------------------------------
To configure:

core_sql.c (fallback logins)
mypa.cfg (logins)

then type make all ...

To call it in game: run tick.sh in the background, it
calls every 30 s the ticker.

--------------------------------------
I've done the configure but don't know how to make all ?
There are quite some files couple of 15 or something .h and .C files..

I hope you can help me a bit further now

Thnx

pMzQ,