Problem in compiling C++ with Sybase library in Cygwin

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

indianparadesi

Thread Starter
Joined
Apr 8, 2008
Messages
1
I have an application in Linux (Suse) to be ported in to Windows. Since the application is considerable big, instead of preferring to rewrite the code replacing Unix API calls to Windows calls, we opted for using CYGWIN.

We are able to compile simple program with Cygwin and the exe thus created runs effectively. But our application uses sybase library (.so files in Linux). We tried to compile our application with sybase .so file in CYGWIN but we have not succeeded. We tried to compile/link with sybase .dll (windows equivalent) and we are able to create the exe. but when running the exe, we are getting "STATUS_ACCESS_VIOLATION".

We tried to use a sample from sybase (EAServer) called arith.cpp. We are able to compile the code with Windows based VS IDE. but the same when compiled with CYGWIN, gives same "STATUS_ACCESS_VIOLATION" problem.

Please clarify if we can
1) link .so (sybase easerver) in CYGWIN. if so how?
2) link .dll in CYGWIN.
3) how to avoid "STATUS_ACCESS_VIOLATION"
 
Joined
Sep 12, 2003
Messages
20,583
I would search for: porting C++ Sybase applications
to find information, FAQs, etc. about doing what you are trying to do.

It sounds to me like you may need to port the database first, then the runtime libraries, then the application from Linux to Windows - but, I could be wrong about this.

Alternatively, I would think that the database could reside on a network node, and with proper networking support, the system libraries and networking calls could be done heterogeneously from one network node to another where each node may be running a different OS, e.g. Linux vs Windows.

-- Tom
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top