Compiling occi programs using RHES4

I've read on this forums issues with compiling using gcc.
gcc -v reports: gcc version 3.4.3 20050227 (Red Hat 3.4.3-22)
I need to compile an Oracle application to run on a RHES4 platform, so is there anyway around this? I have my compile command:
g++ cache.cpp -lz -lpthread -Wl,-R/usr/lib/oracle/10.2.0.1/client/lib -L/usr/lib/oracle/10.2.0.1/client/lib -I/usr/include/oracle/10.2.0.1/client -locci -lclntsh -o cache
I get an error reported:
/usr/bin/ld: warning: libstdc++.so.5, needed by /usr/lib/oracle/10.2.0.1/client/lib/libocci.so, may conflict with libstdc++.so.6
I think, oh well, worth a try. So I run the app and as soon as it tries to call any OCCI function (speficially createConnection()) my program crashes with an invalid pointer error (*** glibc detected *** free(): invalid pointer: 0x09a858c0 ***).
Is there any way around this at all? it seems strange to me that occi will not work with systems build in libstdc++6 (which is, I think, all red hat versions from the last year to 18 months I think).
Many thanks
Si

Hi~ All,
I encountered same problem, but it's RHAS4.0 ......Actually,
I use the Oracle Instant Client 10.1.0.3 to make test. But, I got
some compiled warning as below,
rm -rf SunWS_cache
rm -rf ../../libclntsh.so
rm -rf ../../libocci.so
ln ../../libclntsh.so.10.1 ../../libclntsh.so
ln ../../libocci.so.10.1 ../../libocci.so
/usr/bin/g++ -o occidml -g occidml.o -L../../ -locci -lclntsh -lnnz10 -lpthread
/usr/bin/ld: warning: libstdc++.so.5, needed by ../..//libocci.so, may conflict with libstdc++.so.6 ...
Someone had suggested me to change symbolic link, But it could effect to some applications which use libstdc++.5.How to do it ?

Similar Messages

  • Compiling a small C++ OCCI program using Visual Studio 2005

    Hi All,
    I have used the OCCI app the first time and it's NOT even compiling - throwing up "unresolved symbol" errors on its own symbol. Can any kind soul please tell me what's wrong and what should I do to get out of this painful situation? I have been stuck in this for around 6 hours now and can't do much.
    Thanks in advance,
    Asif

    Hello again,
    "Unable to locate component: This application has failed to start because oraocci10.dll was not found. Re-installing the application may fix the problem."
    Due to my desperation in making the project work i did the following thing:
    I created a folder: c:\instantclient\ which includes 2 folders: lib and include
    I put in the LIB FOLDER all the *.lib and *.dll i need and in the INCLUDE FOLDER all the *.h i need.
    So now i have:
    Tools->Options->Projects and solutions->VC++ Directories->
    -Executable files: c:\Program files\Microsoft Platform SDK ...\bin
    -Include files: c:\instantclient\include
    c:\Program files\Microsoft Platform SDK ...\include
    -Library files: c:\instantclient\lib
    c:\Program files\Microsoft Platform SDK ...\LIB
    Project->Project properties->Config.Properties->Linker->General->Additional Library Directories i added C:\instantclient_10_2\lib
    Project->Project properties->Config.Properties->Linker->Command Line- i added:
    oci.lib oraocci10.lib
    I am sure i am doing something wrong, but what?
    If i start a debugger i get the error i mentioned at the beggining of my post.
    Thank you again for your help and support but if there is no other way i'll reinstall VC++.
    Waiting for another opinion.
    Irina

  • Which librarys are essential when compiling Oracle 10g OCCI program in CW9?

    I'm using Mac OS X 10.3.6, gcc3.3, CodeWarrior 9.0, and installed XCode1.5 too.
    I had installed Oracle Database 10g Client for Mac OS X fully.
    I'm trying to build the demo of OCCI. I can run the'make -f demo_rdbms.mk occimb1' command
    successfully, and generate a 'occimb1' execution file.
    But when I build 'occimb1' demo with CodeWarrior, the statement 'Environment::createEnvironment()'
    cause a error as below:
    Link Error : undefined:
    '_ZN6oracle4occi11Environment17createEnvironmentERKSsS4_NS1_4ModeEPvPFS6_S6_mEPFS6_S6_S6_
    mEPFvS6_S6_E' (code)
    Referenced from 'main' in occimb1.cpp
    I had already added these lib: libclntsh.dylib.10.1, libocci.dylib.10.1, libnnz10.dylib, libociei.dylib.
    Which librarys are essential when compiling Oracle 10g OCCI program in CW9?

    Hi,
    The same issue is faced by me when I was migrating my application from forms6i (oracle 8i) to forms 10g(oracle 10g).
    Solution:
    create a view based on the table on the other database (use db link)
    now create a synonym using this view and make it public.
    use this synonym in your form.
    It looks like something weared but this worked !!
    Try it !!

  • Program using Xalan 1.10 doesn't compile

    Hi all,
    I have to port some server code from Windows to Solaris. Normaly this works fine, but now I have a problem using Xalan 1.10.
    Platfrom: SunOS sun4 5.8 Generic_108528-24 sun4u sparc SUNW,Ultra-80
    Compiler: Sun C++ 5.7 Patch 117830-07 2006/03/15
    By including a Xalan header and compile it with "CC -I/opt/xalan/src -I/opt/xerces/src -library=stlport4 xalan.cpp" I got the errorlist below.
    Without stlport4 it compiles. I have to use this library, because I am using boost and I have had only success building the boost stuff with stlport4.
    Do I have to modify the Xalan header? Has anybody some suggestions?
    Thanks for your help
    Arno
    Here is the example code:
    #include <xalanc/XalanTransformer/XalanTransformer.hpp>
    int main ()
    return 0;
    Here are the error messages from the compiler:
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 102: Error: Too many arguments for template std::reverse_iterator<xalanc_1_10::Type*, std::random_access_iterator_tag, xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: While specializing "xalanc_1_10::XalanVector<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: Specialized in non-template code.
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 106: Error: Too many arguments for template std::reverse_iterator<const xalanc_1_10::Type*, std::random_access_iterator_tag, const xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: While specializing "xalanc_1_10::XalanVector<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: Specialized in non-template code.
    "/opt/xalan/src/xalanc/Include/XalanDeque.hpp", line 186: Error: Too many arguments for template std::reverse_iterator<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeIteratorTraits<xalanc_1_10::Value>, xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>>, std::random_access_iterator_tag, xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: While specializing "xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: Specialized in non-template code.
    "/opt/xalan/src/xalanc/Include/XalanDeque.hpp", line 190: Error: Too many arguments for template std::reverse_iterator<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::Value>, xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>>, std::random_access_iterator_tag, const xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: While specializing "xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: Specialized in non-template code.
    4 Error(s) detected.

    On Solaris, Posix threads are implemented on top of native threads; the interfaces are different. There are no conflicts between the two libraries or their interfaces. You can mix Posix and native thread usage.
    libCstd and STLport are different implementations of the same interface. The size and layout of the standard types are different. The names of the standard functions are the same, but the definitions of those functions are different.
    Suppose both parts of the program use the standard string class. One part was compiled for use with libCstd, and creates the libCstd version of a string object. If that object gets passed to the part of the program compiled for use with STLport, it will have a different idea of how the class is defined.
    If you link both libCstd and libstdlport to the program, all the standard objects (like cin and cout) and functions (class members and free functions) will have the same names. You wil pick up the version from whichever library is linked first. Calling libCstd function on an STLport object won't work, and neither will the reverse.
    Finally, recall that much of the standard library consists of inline functions. The bodies of those functions are embeded in the .o files of your application code. The application code will therefore depend on a particular layout of standard class objects; the layout is different in the two libraries.
    We have not made a serious effort to compile BOOST using libCstd -- much of BOOST depends on too many missing features. Some suggestions:
    1. You can try experimenting with BOOST configuration macros and see if you can get the code to compile.
    2. You could wirte your own version of the BOOST components you are using, removing dependencies on features that are not in libCstd.
    3. You could ask the 3rd-party library supplies to provide a version compiled with -library=stlport.

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Compiling programs using jdk1.6.0

    when i compiled program using "system.out.print.in " , it shows an error
    that package system does not exist .

    if you want to print something use
    System.out.printor if you want to make it print on seperate lines
    System.out.println

  • Trying to compile a C#-program using NI-Vision

    Hello,
    i have zip-file from a colleague which contains a C#-program that uses NI-Vision 8.5.
    The project used to work and i have to make changes to the code but currently i am just trying to compile the old code.
    System: Windows XP
    Installed Software:
    - Microsoft Visual C#2008 Express Edition
    - Ni Vision Development Module 8.5
    - IC Capture 2.0 (SW from the Camera)
    - IC Imaging Control 3.0 (SW from the Camera)
    When trying to compile the project it says 30 errors with:
    "Type or Namespace "NationalInstruments" not found"
    When checking the Verweise (see screenshot) then there is one line marked:
    NationalInstruments.AxCWIMAQControlsLib.Interop
    So i think this is the only thing that is missing that i can compile the program.
    But how can i add it?
    When i check the available Verweise then there are a lot of NationInstruments-things but all with other names.
    What do i have to do?
    Thanks for all help
    Attachments:
    Eins.jpg ‏11 KB
    zwei.jpg ‏25 KB
    drei.jpg ‏45 KB

    Hi Aurelie,
    thank you for the tips.
    I am sure that it is nit DotNet 4 because it is compiled with C#2008 (which cannot use 4.0).
    The namespace NationInstrument is found but not the marked Reference.
    Meanwhile i deleted the missing reference and added another. Now i can compile without errors.
    The program is still not running but i think this is because the camera-driver is missing...
    But i still dont know how my collegue inserted this now missing reference.
    TM

  • Compile c programs to use dual processors

    I am trying to optimized a c program to run in a SunBlade 1000 with 2 processors.
    gcc installed in the mchine is version 2.95.3.
    If I want to compile the program to use both of the processors, how should I proceed? I read the gcc manual, also did some google searches, but did not get it to work.
    I would appreciate your input very much.

    The most straightforward way for this to happen would be if gcc had implemented openMP (which as far as I know, it has not). If you are set on using the GNU compilers, you'll have to create multiple threads to take advantage of the dual processors on your SB 1000. Describing how to write a multi-threaded app is considerably beyond the scope which could be addressed in this medium. You can start by reading up on multi-threaded programming and playing with the functions in libthread. Look at the man pages for thr_create and you'll find some simple examples to get you going. If you are open to using the Sun compilers Sun One Studio Compiler collection, the compiler can do some of the hard work for you. If you included openMP pragmas, it can do an even better job.

  • Compile and run java programs using batch file

    i am using eclipse to run my java programs.How to compile and run those programs using a batch file?

    a) just write a batch file, and add it to the project. When you want to run it, go to a command window and invoke it. (There is probably also a way to invoke it from Eclipse)
    b) if the project is complicated, take a look at ant. Eclispe knows about ant files.

  • Compiling occi with Mingwstudio on Linux - Problem

    Hello,
    I downloaded the oracle-instantclient-devel-10.2.0.1-1.i386.rpm and the oracle-instantclient-basic-10.2.0.1-1.i386.rpm, converted everything with alien to *.deb-Files and installed it on my debian-machine. Now I hoped to get a test programm compiled - but I don't have success. Code goes like that:
    #include "oracle/occi.h"
    using namespace oracle::occi;
    Environment *env;
    Connection *conn;
    Statement *stmt;
    void Mainform::OnButton1 (wxCommandEvent& event)
         env = Environment::createEnvironment (Environment::DEFAULT);
    Environment::terminateEnvironment (env);
    Everything will compile, when I put the /usr/include/oracle/10.2.0.1/client-Path as an additional include directory under Project Settings. But the linker hangs - it hangs because I have got no idea, what the settings are for the Linker libraries and the additional library path. Error message is llike this:
    Linking...
    /dateien/projects/oracletest/Release/mainform.o(.text+0x6ee): In function `Mainform::OnButton1(wxCommandEvent&)':
    : undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned), void* (*)(void*, void*, unsigned), void (*)(void*, void*))'
    /dateien/projects/oracletest/Release/mainform.o(.text+0x7a7): In function `Mainform::OnButton1(wxCommandEvent&)':
    : undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
    collect2: ld returned 1 exit status
    oracletest - 2 error(s), 0 warning(s)
    Can anyone help me?

    How does it stop? Do you get a NoClassDefFoundError? If that's so, then probably com.apache.crimson.parser.XMLReaderImpl is not on your classpath. Do you have the correct version of Crimson on your classpath?
    By the way, do you really want to explicitly have your program use Crimson? The XML API was set up in such a way that it is possible to plug in different XML parsers, but using your code you bind your program to one specific parser. Try:
    XMLReader xr = XMLReaderFactory.createXMLReader();
    and set the system property "org.xml.sax.driver" to "org.apache.crimson.parser.XMLReaderImpl":
    java -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl myclass
    Jesper

  • Compile occi error LNK2019 on windows XP SP2 with VC7 command line

    I try to compile a cpp file from command line under Windows XP SP2 environment with:
    - Microsoft Visual Studio .NET 2003
    - Oracle 10g 10.1.0.2.0 client (admin) installed
    , but I encountered error on the code "env = Environment::createEnvironment (Environment::DEFAULT);" as follows:
    occiclient1.obj : error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl
    oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),
    void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void*))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@W4Mode@123@PAXP6APAX1
    I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "public: __thiscall occiclient1::occiclient1(void)" (??0occiclient1@@QAE@XZ)
    I have already included necessary e.g. oraocci10.dll, oraociei10.dll for the %PATH% and %LIB% environment variables, and have tried many times but still fail, are there something I done wrong or missing?
    The command line I used to compile the program is "cl -GX occiclient1.cpp"

    hi!
    My partition has c: 40GB ( i dumped sap software in this drive) and d: 120GB. And i hav e: drive for CD Drive.
    Actually, the drives set "AUTO Mount". i removed the mount. it will work. i was given all all input parameters of Central Instance......
    After start the Central instance,
    step 2, File system check/adapt (post processing) , i got same problem. Even i tried windows XP and Win 2003 also.
    i logged as administrator user only......... i installed jdk........ and i chek it's working fine........
    what was the solution...
    regards
    raghu

  • Can't find (and possibly don't have) the -lglut -lGLU -lGL libraries... or at least when I try to compile a program, it returns with that error.  Any ideas (I really need to get this popgen program running on Lion)? Thx!

    Hi all,
        I'm trying to compile a population genetic software program onto my Mac Lion.  It was originally compiled to Tiger and worked beautifully.  But now I'm getting an error  'library not found for -lglut', and now I'm trying to figure out how to download the library. I've installed the command line code for Xcode, and am thinking I possibly missed installing the libraries.  I could be very wrong here... all I know is that I'm no longer near the people I would ask to help me with this so I'm asking you!  Thanks in advance for any help!  I guess my questions are: 1) where can I download the glut (potentially OpenGL) libraries (if I don't have them already)? And 2) once downloaded, how do I install it so the makefile will compile my program (in terminal, not Xcode)? Cheers,
    C

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • Compile errors when using stlport4

    Hi,
    I have a large code that I am compiling using SunStudio12 and stlport4 (that comes with the compiler).
    It has other libraries (ACE, boost, in-house libs) that we link it with. All of these libs were built using the SunStudio12 and stlport4. When I am linking with my program, I get the following errors. Can you pls explain why?
    Linking CXX executable AgoraConnectionTest
    cd /home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/Tests/AgoraConnectionTest && /home/sherugu1/cmake-2.6.2-SunOS-sparc/bin/cmake -E cmake_link_script CMakeFiles/AgoraConnectionTest.dir/link.txt --verbose=1
    /home/cdev/SunStudio12/SUNWspro/prod/bin/CC -g -KPIC -m32 CMakeFiles/AgoraConnectionTest.dir/AgoraConnectionTest.cpp.o CMakeFiles/AgoraConnectionTest.dir/TISTest.cpp.o CMakeFiles/AgoraConnectionTest.dir/TSSTest.cpp.o CMakeFiles/AgoraConnectionTest.dir/process_response.cpp.o -o AgoraConnectionTest -L/home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib -L/home/cdev/csfb/gmr/10.0.1/gmr/solaris10_32bit_SS12/lib -L/home/cdev/pkgs/ace/ACE-5.6-Solaris10_SS12/ACE_Wrappers/lib -L/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/ems/solaris10_32bit_SS12/lib -L/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/solaris10_32bit_SS12/lib -L/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/Cadre/solaris10_32bit_SS12/lib -L/home/cdev/pkgs/ems/solaris/4.4.1/clients/c/lib -L/home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4 -Bstatic -lapiD -lNOTIFg -Bdynamic -lACE -Bstatic -lcadreD -ltibems -Bdynamic -lboost_unit_test_framework-sw-mt-1_36 -lboost_date_time-sw-mt-1_36 -lboost_thread-sw-mt-1_36 -lstlport -R/home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib:/home/cdev/csfb/gmr/10.0.1/gmr/solaris10_32bit_SS12/lib:/home/cdev/pkgs/ace/ACE-5.6-Solaris10_SS12/ACE_Wrappers/lib:/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/ems/solaris10_32bit_SS12/lib:/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/solaris10_32bit_SS12/lib:/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/Cadre/solaris10_32bit_SS12/lib:/home/cdev/pkgs/ems/solaris/4.4.1/clients/c/lib:/home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4
    ld: warning: symbol `std::locale::facet::__vtbl' has differing sizes:
    (file /home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib/libboost_date_time-sw-mt-1_36.so value=0x14; file /home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4/libstlport.so value=0xc);
    /home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib/libboost_date_time-sw-mt-1_36.so definition taken
    ld: fatal: symbol `void std::vector<bool>::resize(unsigned,bool)' is multiply-defined:
    (file CMakeFiles/AgoraConnectionTest.dir/process_response.cpp.o type=FUNC; file /home/cdev/SunStudio12/SUNWspro/prod/lib/sparc/libCstd.a(vecbool.o) type=FUNC);
    ld: warning: symbol `std::cout' has differing sizes:
    (file /home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4/libstlport.so value=0x68; file /home/cdev/SunStudio12/SUNWspro/prod/lib/sparc/libCstd.a(ios.o) value=0x60);
    The list of errors goes on like this in multiple places.
    To me, it looks like I am using both stlport and standard STL. How do I tell the linker to use only stlport? Am I missing something?
    CC_FLAGS are: -DSOLARIS -DPOSIX_PTHREAD_SEMANTICS -D_VMT -DT_SUN4_SOLARIS -DUNIX -KPIC -DACE_NDEBUG -D_ACE_56_ -D_REENTR
    ANT -DACE_NDEBUG -D_PTHREADS -mt -library=stlport4
    Pls help!
    Rgds,
    Sreeni

    The links are there, but not pointing to /usr/lib. Yes, I installed the tarball into /home/cdev/SunStudio12 directory. I dont have root privileges to install any other way. To avoid the delay and the paper work it takes to get the SA install the compiler, I just used to tarball since the Sun website said it was OK to do that. Pls advise.
    This is what I have in the directory you mentioned.
    vpns36x-0001:/home/cdev/SunStudio12/SUNWspro/lib>ls -altr *so
    lrwxrwxrwx 1 sherugu1 cdev 14 Dec 4 11:31 libCrun.so -> ./libCrun.so.1
    lrwxrwxrwx 1 sherugu1 cdev 28 Dec 4 11:31 libCstd.so -> ../prod/usr/lib/libCstd.so.1
    lrwxrwxrwx 1 sherugu1 cdev 18 Dec 4 11:31 libiostream.so -> ./libiostream.so.1
    lrwxrwxrwx 1 sherugu1 cdev 24 Dec 4 11:31 debugging.so -> ../prod/lib/debugging.so
    lrwxrwxrwx 1 sherugu1 cdev 34 Dec 4 11:31 rtcaudit.so -> ../prod/lib/dbxruntime/rtcaudit.so
    lrwxrwxrwx 1 sherugu1 cdev 38 Dec 4 11:31 libdbx_agent.so -> ../prod/lib/dbxruntime/libdbx_agent.so
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libV77.so -> ./libV77.so.3
    lrwxrwxrwx 1 sherugu1 cdev 19 Dec 4 11:31 libf77compat.so -> ./libf77compat.so.1
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libfai.so -> ./libfai.so.3
    lrwxrwxrwx 1 sherugu1 cdev 14 Dec 4 11:31 libfai2.so -> ./libfai2.so.3
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfmaxlai.so -> ./libfmaxlai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfmaxvai.so -> ./libfmaxvai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfminlai.so -> ./libfminlai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfminvai.so -> ./libfminvai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfprodai.so -> ./libfprodai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libfsu.so -> ./libfsu.so.1
    lrwxrwxrwx 1 sherugu1 cdev 16 Dec 4 11:31 libfsumai.so -> ./libfsumai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libfui.so -> ./libfui.so.2
    lrwxrwxrwx 1 sherugu1 cdev 12 Dec 4 11:31 libgc.so -> ./libgc.so.1
    lrwxrwxrwx 1 sherugu1 cdev 11 Dec 4 11:31 libm9x.so -> libm9x.so.0
    lrwxrwxrwx 1 sherugu1 cdev 20 Dec 4 11:31 libcollectorAPI.so -> libcollectorAPI.so.1
    lrwxrwxrwx 1 sherugu1 cdev 18 Dec 4 11:31 libfcollector.so -> libcollectorAPI.so
    lrwxrwxrwx 1 sherugu1 cdev 11 Dec 4 11:31 libtha.so -> libtha.so.1
    lrwxrwxrwx 1 sherugu1 cdev 15 Dec 4 11:31 libsunmath.so -> libsunmath.so.1
    lrwxrwxrwx 1 sherugu1 cdev 18 Dec 4 11:31 libdemangle.so -> ./libdemangle.so.1
    Also, the file sizes are different b/n this dir and /usr/lib. Maybe the versions are different?
    vpns36x-0001:/home/cdev/SunStudio12/SUNWspro/lib>ls -altr ../prod/usr/lib/libCstd.so.1
    -rw-r--r-- 1 sherugu1 cdev 1796972 May 3 2007 ../prod/usr/lib/libCstd.so.1
    vpns36x-0001:/home/cdev/SunStudio12/SUNWspro/lib>ls -altr /usr/lib/libCstd.so.1
    -rwxr-xr-x 1 root bin 1907940 Oct 12 2006 /usr/lib/libCstd.so.1

  • I am not able to compile a program  on my mac...

    I am not able to compile a program  on my mac; i am getting the following message :"Class names, 'ClassName.Java', are only accepted if annotation processing is explicitly requested".  I am new to programming, and I am using a MAC. Any suggestions?  I am typing: "Javac ClassName.Java" at the command prompt.

    You might want to be posting to the developer forum here:
    https://discussions.apple.com/community/developer_forums

Maybe you are looking for