cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

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

Baixar tudo
0 Kudos
Mensagem 1 de 7
6.677Exibições

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
Mensagem 2 de 7
5.290Exibições

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
Mensagem 3 de 7
5.291Exibições

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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Mensagem 4 de 7
5.291Exibições

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

0 Kudos
Mensagem 5 de 7
5.291Exibições

Hi

 

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

0 Kudos
Mensagem 6 de 7
3.940Exibições

Hi

 

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

0 Kudos
Mensagem 7 de 7
3.939Exibições