From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

link error

How do I resolve this error or what does this mean?
" Inconsistent type declarations for external symbol
'_hp662xa_InitWithOptions@20' in modules 'PWRSETUP.C' and 'agilentdrv.c'."
0 Kudos
Message 1 of 9
(5,207 Views)
Hello

Im just guessing, but looks like both those C files might be defining that particular function in a different way ( calling convention, parameter type, number of parameters). Check those files to see if everything is defined the same way.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 9
(5,201 Views)
Thank Bilal. The strangest thing happen. See all of the code should check out because it's been running for the last 5 years, so the code looked correct. What I did was installed my power supply library to labwindows by using the add library. This gave me tons of errors. Then I removed it and for fun tried to recompile and all the errors went away. The exe when I ran it, seemed to run fine. I'm not sure what happened but it works.
0 Kudos
Message 3 of 9
(5,201 Views)
I am having this same error after adding a library (sql20).  I can't just remove the library if I am going to be accessing a database.  What other solution is there?  I have no inconsistencies between the files.  It compiles fine without the library added.
0 Kudos
Message 4 of 9
(5,069 Views)
Hello MES,

I would suggest taking a look at the following post which recommends trying to rearrange the order of your include files..

Let me know how this goes.  Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 5 of 9
(5,048 Views)

I've tried this a little bit already, but at your suggestion, I tried to do this again, with some more thought.  No success....

I realize that the conflicts are coming from "winerror.h" and "wingdi.h" which don't show up in the include tree in the source code browser.  I'm sure it has to somehow be coming from cvi_db.h (the sql toolkit db header).  If I replace that file in the project with the backed up version from labwindows 4.0 it builds ok.  When I switch back to the 7.0 version, I get the redeclaration and redifinition errors.  I believe this new header is somehow causing labwindows to include several sdk headers that I shouldn't need.  It doesn't matter what order I put this file in the includes, I still get errors.

Thanks

0 Kudos
Message 6 of 9
(5,040 Views)
Hi, MES.

This sounds like a sticky issue. I'm going to do some research and get back to you with what I find out.
Sarah K.
Search PME
National Instruments
0 Kudos
Message 7 of 9
(5,014 Views)
 
I was given several disorganized backups of our software, and eventually one route led me to success.  (above post was when I got through).  Apparently my error there was that an old library was included in the project file, and I replaced it with the currently installed sql library. 
 
Sorry if I already caused any unnecessary trouble.
 
Thanks
0 Kudos
Message 8 of 9
(4,998 Views)

I know this is an older thread; but it was the first link that came up in a Google search for this issue when it happened to me. The info here wasn’t helpful to me so I thought it would be nice to add what my problem was in case it helps other people.

 

My issue was that after editing the elements of a structure defined in one file; CVI for some reason did not mark another file dependent on that structure for recompilation. So while compiling the rest of my project most of the files had the new structure setup, while this one file did not and so this error was thrown.

 

My solution was to mark all files for recompilation and the error was cleared on the next build.      

0 Kudos
Message 9 of 9
(3,462 Views)