error in #include statement [message #901398] |
Sat, 11 August 2012 18:20 |
|
Hello,
I'm using CDT for editing the scripts with C-like syntax
and there are usual #include instructions,
but without extensions, what I mean:
script:
"...
#include "header_file_name"
...
int main() {
...
}
...
"
but real file name in the file folder:
"header_file_name.xxx"
thus CDT can't resolve file name without extension, and doesn't extract the types from the header.
could you recommend me any possible way to fix this problem in CDT without changing file name on the drive and without changing #include instruction?
[Updated on: Sat, 11 August 2012 18:22] Report message to a moderator
|
|
|
|
|
Re: error in #include statement [message #901552 is a reply to message #901539] |
Mon, 13 August 2012 11:04 |
|
in addition to previous post,
Axel, I've tried your solution
unfortunatelly, it doesn't work ,
C/C++ parser in CDT doesn't see include WITHOUT extensions yet as I've described above
for example :
...
#include "INC_Date"
#include "INC_Log"
...
it raises a errors by C++ parser in editor
but this:
...
#include "INC_Date.xxx"
#include "INC_Log.xxx"
...
does not,
but second variant can't be compiled by script engine
|
|
|
Powered by
FUDForum. Page generated in 0.03290 seconds