Compiler runs forever
#1

Hello, my problem is that when i try to compile, it just compiles and compiles and compiles, it doesn't stop. (no "pawncc has stopped responding").

The thing is, i wanted to move my house system to an include, i did that. Then i included it by doing:
pawn Code:
#include "data/houseSystem"
If i copy the content of "houseSystem" instead of that include line, it's okay.

So i don't understand, doesn't #include actually do that, copy?
Reply
#2

Try \ instead of /. Infinite loops are caused usually by recursive definitions, but in this case it might be screwed up inclusion guard in a file trying to include itself.
Reply
#3

No change, but thanks for trying...
Reply
#4

So let me get this straight, you are looking for a file located in 'pawno/includes/data/houseSystem' ??
Otherwise, let us know the directory of the file.
Reply
#5

The file is located ad "server/gamemodes/data/houseSystem".

I saw this done many many times, and ****** once posted something about includes not necessarily being in the pawno/include folder...


But just to be sure, i moved them to plugins/include, and yet the same outcome
Reply
#6

Ehm, you should do it like this (Don't remove the dots):
pawn Code:
#include "..gamemodes/data/houseSystem"
Reply
#7

This happened to me to fix it, delete all other related SA-MP folders from your desktop.
Reply
#8

Quote:
Originally Posted by Dragonsaurus
View Post
Ehm, you should do it like this (Don't remove the dots):
pawn Code:
#include "..gamemodes/data/houseSystem"
pawn Code:
rp.pwn(571) : fatal error 100: cannot read from file: "..gamemodes/data/houseSystem"
shouldn't the two dots only back up to pawno directory?

Quote:
Originally Posted by safdev
View Post
This happened to me to fix it, delete all other related SA-MP folders from your desktop.
Didn't help
Reply
#9

pawn Code:
#include "..\..\gamemodes\data\houseSystem"
Reply
#10

Quote:
Originally Posted by Misiur
View Post
pawn Code:
#include "..\..\gamemodes\data\houseSystem"
Useful one! Thanks.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)