Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to compile an AIX application with static lib using Visual Age C++

Status
Not open for further replies.

chavax

Programmer
Jan 17, 2002
9
US
Hi everybody

We are trying to compile an AIX application using Visual Age C++ 5.0.2 to be used
in other AIX systems without need to install Visual Age in it because the application uses
OCL and Visual Age libs, and we want to link this libs in static mode into the executable
application.

The problem is that we receive the following message when we are trying to embeed the code
lib in the application.

This is the error message we are receiving:

3 items are referenced but not defined in target...
not defined ".iconv"
Not defined".iconv_close"
Not defined "iconv_open"

This error occurs when libiocns.a and libciocclns.a are being used instead of libioc.a

First, is it correct the way we are trying to compile the application?
How we can compile the application to be used in a different AIX system without need to include
the libs into the system, it means, copy only the application and it must run?

Thanks in advance!!!!
 
Following is the icc code we are using:

option aixip = gen(rtti, "all")
{
option defaults("xlC_r"), link(linkwithsharedlib, no), define("USE_IPF", "1") , link(libsearchpath,"/usr/lpp/db2_07_01/lib/"),
link(linkWithMultithreadLib, yes)
{
target type(exe) "aixip"
{
// source "libioc.a"
source "libdb2.a"
source "libc.a"
source "libiocns.a"
source "libiocclns.a"
option incl(searchpath,"/usr/lpp/db2_07_01/include/")
{

source "iVolumeInfo.cpp"
source "iMonitor.cpp"
source "iSysMonitor.cpp"
source "iDataSynchronizer.cpp"

source "iMemBlock.h"
source "iMemBlock.cpp"
source "iMemBlockParser.cpp"
source "iMemBlockParser.h"
source "iMemBlockWriter.cpp"
source "iMemBlockWriter.h"
source "iMemBlockReader.cpp"
source "iMemBlockReader.h"
source "iMemBlockWriterNode.h"
source "iMemBlockWriterNode.cpp"

source "iDBServerLinker.cpp"
source "iLinkerInterface.cpp"
source "iLinkerProcess.cpp"
source "iLinkerFrame.cpp"
source "iLinkerReceiver.cpp"

source "iProtocol.cpp"
source "iCommunicationData.cpp"
source "iBasicCommunicationTemplate.cpp"
source "iSocketData.cpp"
source "iPipeHandler.cpp"
source "iPipeData.cpp"
source "iURI.cpp"
source "iSocketCommunication.cpp"
source "iPipesCommunication.cpp"
source "iClientComm.cpp"
source "iServerComm.cpp"

option define("__IOC_ANSI_STREAM"), incl(searchpath,"")
{
option macros(global)
{
source "iSqlCli.h"
source "iSqlCli.cpp"

source type(hpp) "iBasicCommunicationTemplate.h"
source type(hpp) "iClientComm.h"
source type(hpp) "iSocketCommunication.h"
source type(hpp) "iPipesCommunication.h"
source type(hpp) "iProtocol.h"
source type(hpp) "iCommunicationData.h"
source type(hpp) "iPipeData.h"
source type(hpp) "iSocketData.h"
source type(hpp) "iPipeHandler.h"
source type(hpp) "iURI.h"
source type(hpp) "iServerComm.h"

source type(hpp) "iDBServerLinker.h"
source type(hpp) "iLinkerProcess.h"
source type(hpp) "iLinkerFrame.h"
source type(hpp) "iLinkerReceiver.h"
source type(hpp) "iLinkerInterface.h"

source type(hpp) "iMonitor.h"
source type(hpp) "iVolumeInfo.h"
source type(hpp) "iSysMonitor.h"
// source type(hpp) "iDataSynchronizer.h"

source type(hpp) "iServerTxns.h"
source type(hpp) "iThread.h"
source type(hpp) "iThread.cpp"
source type(hpp) "iString.h"
source type(cpp) "iProcessCodes.cpp"
source type(hpp) "iProcessReturnCodes.hpp"
source type(hpp) "iProcessTypes.hpp"
source type(cpp) "aixip.cpp"
} // options macro global
} // option define

} // option include

} // target exe

} // defaults
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top