01-21-2014 06:06 PM
I have a project that I can build in CVI 2009. I've upgraded to CVI 2010, loaded my .cws project in 2010 now on every .c file I am getting a "1,1 illegal character ','". What kind of error message is that? Not very informative. I'm guessing, and I stress just guessing, it might be related to some header include order but I have no idea what with that kind of error message.
Thanks
01-22-2014 12:56 AM
Hello atomic928,
I'd suggest doing this: create a new project and add a file from your project that produces the error in 2010. If the error persists, it's a valid compile error that occurs on line 1. If there is no error, it's likely a project setting is wrong. Creating a 2010 project and adding all your files should get rid of the error.
If you'd like, you could send us the project via FTP (ftp.ni.com/incoming) and we will take a closer look.
Best regards,
= Nelu F. || National Instruments.
01-22-2014 02:36 AM
Hi,
I had a similar experience which was related to using an external compiler.
To check if this might be the reason in your case, goto 'Build Options / Build Process Options / Active xxbit compiler' and check if the external compiler configuration has a red cross, i.e. is not properly configured. If so, click on 'Edit / Advanced', and adjust both the 'Compiler Path' and the 'Environment Setup Batch File'.
The compiler path looks something like: c:\program files (x86)\national instruments\cvi2010\bin\clang\clang-cc.exe
Because every CVI is installed into a new folder, this path has to be manually updated. The same is true for the environment.
01-22-2014 10:00 AM
Thanks Wolfgang, but I don't see a 'Edit / Advanced' any where. Neither under the 'Edit' menu item of any where within the 'Options/Build Options' dialog box.
01-22-2014 10:09 AM
Hi,
I am running a newer version of CVI so I cannot provide a screenshot but maybe the manual page here is useful?
01-22-2014 10:18 AM
Hello,
Please let me assist with a screen capture of CVI 2010. I think what Wolfgang means is for you to check if you have a custom configuration added to your project. On the bottom-right of the screen is the dialog that displays the custom configurations for Release.
This leads me to the question: are you receving the error in the debug configuration also?
= Nelu F. || National Instruments.
01-22-2014 10:20 AM
Thanks Nelu
01-22-2014 10:34 AM
OK see it now, down a few windows. But I don't really think that is my problem because I don't have the 'red' warning x or what ever Wolfgang was talking about and yes I get the same error messages for both debug and release builds. Again this project builds fine from a 2009 CVI version.
Thanks
01-22-2014 10:58 AM
well..., it was just one possibility... You could also check the paths of all included files if they point to the current CVI2010 folder
01-22-2014 12:46 PM
atomic928, did you try what I suggested earlier? (create a new project in 2010 and add a file from your project that produces the error in 2010; if there is no error, it's likely a project setting is wrong; creating a 2010 project and adding all your files should get rid of the error). You could also send us the project via FTP (ftp.ni.com/incoming) and we will take a closer look.
Best regards,
= Nelu F. || National Instruments.