Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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