LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to compile CVI projects under linux without cvicc?

Hello out there,

I have installed the LabWindow Run-Time Modul for Linux. First I have tried to compile some samples with cvicc. Everything works fine. But unfortunately
there is no way to debug the programms. Therefore I want to use a IDE with the gcc compiler to  build my programs. The compelation works very fine, I didn't get any error messages. But after I have started the program I get a Message that the Callback functions of the uir could not be found. What have I forgotten to link? Or is there any other way to edit and debug programs under linux?

It would be very nice if you can help me

Thanks

Farmer

0 Kudos
Message 1 of 3
(3,082 Views)
Hello Farmer,

You can do one of two things:

1. You can use the -debug option of cvicc to create a debuggable binary, which you can then debug with any system debugger.

2. That error happens because inside the LoadPanel call, the CVI runtime needs to translate your callback function names into function pointers, and for that, it needs to access the symbols used in your program. There are multiple ways of providing this, but probably the easiest, if you're using gcc, is to use the -rdynamic option (this tells the linker to export the global symbols).

Luis
0 Kudos
Message 2 of 3
(3,038 Views)
Hello LuisG

Thank you for your answer. I hope I will have time to test it today.

Best regards

Farmer
0 Kudos
Message 3 of 3
(3,021 Views)