Extern unix library

Post questions regarding programming in C/C++ in Linux/Unix.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

Extern unix library

Postby Guest » Tue Jun 08, 2004 3:13 am

My problem is the following:

I have a C++ program in a WinXP machine. This program has to call some functions from a extern library which only works in a Silicon machine (OS UNIX). So somehow i have to say to my C++ program to look for the library functions in another computer...

I have an example where this connection is made (maybe it helps):

Its a program example which runs in the windows machine which uses functions of the extern library. This program, when compiled, generates an executable.
Before running the .exe, a .bat file must be run. This .bat file sets up a environement variable "CONTROL" like this:

set CONTROL=c:\users\......\definition\sites

In this "sites" file, the IP number of the computer where the library is (the UNIX computer) is referenced. So thats how the connection with the two machines is made.

Afterwards, u run the .exe and you can make use of the extern library.

However, in my case, i dont generate any executable. The functions of the extern library must be called "directly" by my program. But it never compiles because it keeps saying "LINK ERROR: extern symbol XXXX not solved" (XXXX is every function of the extern library)

Can u help me on this? I would really appreciate it since it is basic for my end-of-studies projet

I work with Visual C++. The two computers work in LAN.

I dont know if i was any clear... im not very familiar with informatics.

Thanks in advance
Guest
 

Postby RecursiveS » Tue Jun 08, 2004 8:22 am

Please do not double post. If anyone can help you, one thread is sufficient. :)
User avatar
RecursiveS
Site Admin
 
Posts: 1236
Joined: Thu Sep 18, 2003 8:33 am
Location: Dorset, UK


Return to Unix/Linux

Who is online

Users browsing this forum: No registered users and 1 guest