View previous topic :: View next topic |
Author |
Message |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: Nürnberg, Germany
|
Posted: Thu Feb 10, 2011 4:20 pm Post subject: Include files (fatal 4) |
|
|
Using scc from the command line, a source file containing an include compiles without any probloms, i.e. scc /INCLUDE include test.c
In Plato the following code (see below) does not complie. Plato reports an error message (see bottom). What could be the possible solution to avoid this.
Code: | #include "Python.h"
#include <stdio.h>
int main(int argc, char **argv) {
printf("here");
return 0;
} |
Quote: | Cleaning...
Clean completed.
Compiling file: glue.c
E:\PLATO_DLL_TEST\GLUE.C(1) : fatal 4 - Include file Python.h cannot be opened
*** Compilation failed
Compilation failed. |
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Thu Feb 10, 2011 5:48 pm Post subject: |
|
|
The current working directory must be wrong at the point of compilation.
Try using the full path for the include file first and then an appropriate relative path. The other way is to specify an INCLUDE folder, for example as a global environment variable. |
|
Back to top |
|
|
|