08-10-2010 05:19 AM
Hello
We use CVI 2009 and we have this warning :
Test.prj(Debug) - main.c - 1 warning 1, 1 Warning: Unexpected trailing tokens on directive line ignored
The first line of the main is just a comment.
Have you ever seen this? Do you have any idea to wich line is ignored?
Regards
Etienne RABY
08-10-2010 08:09 AM
08-10-2010 08:30 AM
The first line of the main...
/*****************************************************************************
Information about soft
*****************************************************************************/
I don't understand...
08-10-2010 11:36 AM
Did you create the file within CVI or import it from an external editor? (Thinking of CR/LF compatibility here)
JR
08-11-2010 02:00 AM
Hello,
Thx for your answer.
I have check with notepad++ : the main is ANSi coded and the end line are CR/LF (I have tried to compile with just CR and just LF : same warning.)
Juste the first character of the first line is highlighted...
08-11-2010 02:30 AM
Hello,
If it's a small project can you post it here?
Regards,
Nacer M. | Certified LabVIEW Architecte
08-11-2010 02:38 AM
Currently, I don't have rights for this... And it's not realy a small project 🙂
Just an idea : if a field of the target setting is not correctly written, can we see this warning? Or maybe a bad line in the .prj?
If I have time, I'll try to create a new project with the same code...
08-11-2010 04:27 AM
Hello
I have more information about this and the problem is probably not with the code:
Unexpected trailing tokens on directive line ignored. |
Compile Warning |
Preprocessor line contains harmless trailing tokens that the compiler ignored. |
Nacer M. | Certified LabVIEW Architecte
08-11-2010 04:31 AM
So can you go to Option>>Preprocess Source File in order to see if there is no problem.
Nacer M. | Certified LabVIEW Architecte
08-11-2010 08:02 AM
It's a good idea.
I'have tried to look, but the file contain 74000 lines...