From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 7 occured while importing Shared Object

Hello,

I have Linux 2009 LV running on 64 bit linux machine(SuSe 11.1). I am trying to import a shared object, but I am not able to. I get Error 7 each time I try.

"

Error 7: Call Library Function Node in libtest.lvlib:sub.vi

"

I am creating a shared object for a simple Subtraction (a-b = c). The library that I am importing is a 32-bit library. I am creating one by using the -m32 option, so it should be compatible with the 32 bit LV.

I am attaching here the files that I am using, including the makefile and the .cpp and the .h file required to create the shared object, present in filesReqToImportShObj.tgz

I am also including the Project file, and the Report generated.

Please advise what can be done. I am facing this problem since long.

-H

Download All
0 Kudos
Message 1 of 7
(5,640 Views)

Thank you.

I got it working. All I had to do was to add to my .h file:

#ifdef __cplusplus
extern "C" {
#endif

//function defination

#ifdef __cplusplus
}
#endif

-H

0 Kudos
Message 2 of 7
(4,253 Views)

soory i did nt understand.. i too have the same problem..want to call a .so file in 32 bit labview linux version,but the shared lib or .so or .o file is in 64 bit version.so is it possible to call?

0 Kudos
Message 3 of 7
(4,254 Views)

No it isn't directly! What you would need to do is to write a 64 bit application in C that calls that shared library and offers an IPC (Interprocess Communication) interface such as shared memory or unix pipes or network sockets to communicate with your 32 bit LabVIEW program.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 7
(4,254 Views)

rolfk is right. This was also discussed in this thread.

0 Kudos
Message 5 of 7
(4,254 Views)

Hi

 

m getting that error 7, how did you add that h.file?

0 Kudos
Message 6 of 7
(2,903 Views)

Hi

 

M getting error 7, is see you said you added h.file. how do you add it?

0 Kudos
Message 7 of 7
(2,902 Views)