Silverfrost Forums

Welcome to our forums

Include files (fatal 4)

10 Feb 2011 3:20 #7737

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.

#include 'Python.h'
#include <stdio.h>
 
int main(int argc, char **argv) {
  printf('here');
  return 0;
}

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.

10 Feb 2011 4:48 #7739

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.

Please login to reply.