Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,209 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | chip programmers | 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