Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/06/26 07:18
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 5,052 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
#include'd file in root folder not found?? #206726
05/15/08 10:00
05/15/08 10:00
Joined: Jul 2007
Posts: 24
N
noobie86 Offline OP
Newbie
noobie86  Offline OP
Newbie
N

Joined: Jul 2007
Posts: 24
Hi i have 2 files in the code for a level, called level1.c and creation.c respectively. level1.c is the main file.

creation.c is the a part of the original code level1.c which was huge and had a lot of repetitive but necessary code so i decided to paste it in a separate file. The creation.c file is in the root folder of my game.

Now i tried using the following line in level1.c

#include <creation.c>

When i run level1.c it says include file 'creation.c' not found, even though it is in my root folder. There is no spelling or letter-case error, i've triple checked. Why is it unable to detect it?

Also i've recently started getting an error 'main file not found, check preferences'. Alt-F5 fixes this but i didn't have this error until a week ago and i've coded many script files before that. It automatically used to change the main file. Now i have to do it manually. It's ok but can something have gone wrong with the software that's causing this?

Re: #include'd file in root folder not found?? [Re: noobie86] #206732
05/15/08 10:08
05/15/08 10:08
Joined: Jul 2007
Posts: 19
T
tivi Offline
Newbie
tivi  Offline
Newbie
T

Joined: Jul 2007
Posts: 19
use
#include "creation.c"

Re: #include'd file in root folder not found?? [Re: tivi] #206734
05/15/08 10:13
05/15/08 10:13
Joined: Jul 2007
Posts: 24
N
noobie86 Offline OP
Newbie
noobie86  Offline OP
Newbie
N

Joined: Jul 2007
Posts: 24
hey it worked! thanks! that was stupid of me smile


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1