LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

[CVI 2009] Unexpected trailing tokens on directive line ignored.

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



0 Kudos
Message 1 of 17
(4,705 Views)

@Eraby wrote:

 

The first line of the main is just a comment.

 


The fact that a line is a comment does not stop the compiler/preprocessor inspecting and acting on it. (As here, for example.)

 

Post the line and we might be able to help a bit more.

 

JR

0 Kudos
Message 2 of 17
(4,691 Views)

The first line of the main...

 

/*****************************************************************************
Information about soft
*****************************************************************************/

 

I don't understand...

0 Kudos
Message 3 of 17
(4,688 Views)

Did you create the file within CVI or import it from an external editor? (Thinking of CR/LF compatibility here)

 

JR

0 Kudos
Message 4 of 17
(4,675 Views)

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...

 

 

0 Kudos
Message 5 of 17
(4,653 Views)

Hello,

 

If it's a small project can you post it here?

Regards,

Nacer M. | Certified LabVIEW Architecte

0 Kudos
Message 6 of 17
(4,648 Views)

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...

 

 

0 Kudos
Message 7 of 17
(4,645 Views)

 

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

0 Kudos
Message 8 of 17
(4,641 Views)

So can you go to Option>>Preprocess Source File in order to see if there is no problem.

Nacer M. | Certified LabVIEW Architecte

Message 9 of 17
(4,640 Views)

It's a good idea.

 

I'have tried to look, but the file contain 74000 lines...

 

 

0 Kudos
Message 10 of 17
(4,624 Views)