bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with linking using gcc


From: SRINIVAS ALURI
Subject: Problem with linking using gcc
Date: Wed, 29 May 2002 13:06:49 +0100 (BST)

Dear Sirs

I have developed a "C"/"C++" program. This program
will use API (lidoapi). My platform is SunSolaris
(Sparc).
After devloping the code i have compiled the program
using gcc -c abc.c

After that i have linked the object file using
gcc -o abc abc.o /test/lindoapis....

When i execute this from the $ prompt it is executing
and giving the desired Output

When try to call the same executable file for Java
servlet/Jsp using Browser it is not executing.


When i have not linked and just compiled the program
is working from standalone and as well as from
browser. (ofcourse the total output is not coming,
because it is not linked with apis, but it is able to
call the exe and executing. But when i use link it is
not able call the exe itself)

The problem is coming only when i link


Same thing i have tried on Linux.

I have compiled using gcc -c abc.cpp

But linked with 
g++ -0abc abc.o /test/lindoapi....

In this case it working fine from standalone and as
well as from Browser also.

Is it problem with Linkage using gcc.

Please help me in this regard.

If i have to use g++ only for linkage. If yes where i
will get teh g++ for SunSolaris (sparc)

Thanking You
Aluri

=====
Living on Earth may be expensive, but it includes an annual free trip around 
the Sun

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]