Author Topic: Missing include path  (Read 5390 times)

Lamego

  • Guest
Missing include path
« on: November 20, 2005, 01:50:33 pm »
I am compiling from CVS on linux, It seems an include path is missing on the make process:

Code
In file included from ./sdk.h:93:
./scriptingmanager.h:4:25: error: angelscript.h: No such file or directory
./scriptingmanager.h:16: error: ISO C++ forbids declaration of 'asIScriptEngine' with no type
./scriptingmanager.h:16: error: expected ';' before '*' token
./scriptingmanager.h:23: error: expected `;' before 'int'
./scriptingmanager.h:29: error: ISO C++ forbids declaration of 'asIScriptEngine' with no type[

I have copied the file to one of the include paths as a workaround, it is compiling now...

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Missing include path
« Reply #1 on: November 20, 2005, 02:08:50 pm »
As an alternative you could compile with the following command:
Code
make CPPFLAGS="$(CPPFLAGS) -I../sdk/as/include"
Works too and you don't have to change anything or copy files.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Lamego

  • Guest
Re: Missing include path
« Reply #2 on: November 21, 2005, 08:17:26 pm »
I did a CVS update today and it compiles fine now.


guppy

  • Guest
Re: Missing include path
« Reply #3 on: November 25, 2005, 08:55:44 am »
I did a CVS update today and it compiles fine now.

Hmm.. with a fresh checkout I still need to manualy include that path..

did you use anything extra ordinary for ./configure ?
edit:
finally got it to compile had to do
Code
make CPPFLAGS="$(CPPFLAGS) -I../sdk/as/include -I../sdk/.libs -I../sdk/ -I../sdk/Managers -I../sdk/tinyxml -I../sdk/wxscintilla -I../sdk/resources"

wich seems a little excessive, but uhm..

also
./configure --disable-contrib
./configure --enable-contrib
./configure --enable-contrib=no

all compiles the contrib dir.. Im kind of thinking that that is not the intention..
« Last Edit: November 25, 2005, 11:48:43 am by guppy »

elnikoff

  • Guest
Re: Missing include path
« Reply #4 on: November 28, 2005, 08:15:09 pm »
Thanks for this post : I could get over this error.

Thank for the tip. Perhaps should it be interesting to have a section 'Common errors with CVS compile' in the Wiki ?