- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm facing a strange problem in my Intel Fortran project. Everytime I switch on the preprocessor, I get an error #5078 "Unrecognized token '?' skipped". This error occurs in line 1 of one of my source files, in which line 1 only consists of comments. Even if I delete all code from that file (which would make my program crash, of course), the same error still occurs. I need this preprocessor, because I have #include statements in my code. I'm using Visual Studio 2008 and Intel Fortran Compiler 11.0.074.
Did anybody else encounter something like that?
Martin
I'm facing a strange problem in my Intel Fortran project. Everytime I switch on the preprocessor, I get an error #5078 "Unrecognized token '?' skipped". This error occurs in line 1 of one of my source files, in which line 1 only consists of comments. Even if I delete all code from that file (which would make my program crash, of course), the same error still occurs. I need this preprocessor, because I have #include statements in my code. I'm using Visual Studio 2008 and Intel Fortran Compiler 11.0.074.
Did anybody else encounter something like that?
Martin
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suspect that your include file is UTF-16 rather ASCII-encoded. To verify this, right-click it, select "Open With->Binary editor". If I'm right, you will see the BOM at the beginning of the file, and the rest of the file probably 2-byte encoded. To fix it, select "Save As->Save with Encoding...".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mh, what I finally did was to copy the code in another file, delete the original one and rename the new file to the original name. That worked. Your explanation could be correct, though it's kinda strange that this happened without me doing anything about the encoding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe the file originated from some editor other than the Visual Studio? Or it has an extension by which the Visual Studio thinks it should be Unicode-encoded by default? Whatever, glad that you sorted it out.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page