Thread: shared library for QNX

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    4

    shared library for QNX

    Hi, I'm develop shared library for Linux, AIX and QNX. there is no problem for Linux and AIX,
    but in QNX, if I execute a simple application which -lwiththislibrary,
    it's always segmentation violation (core dumped) occurs.

    for note:
    this shared library must to linked with an static library,
    static and shared library are ready to compile in every OS.
    I am use QNX 6.2.1

    sorry for my English

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > it's always segmentation violation (core dumped) occurs.
    It means that there are still bugs in it.

    Is the "test" of the library the same in all cases?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    explain what you mean by "this shared library must to linked with an static library" due to their mutual exclusiveness

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    And the core dump happens where? Use a debugger..
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Shared library design problem
    By p1r0 in forum C++ Programming
    Replies: 9
    Last Post: 03-23-2009, 12:36 PM
  2. Problems using/creating a shared library
    By benshi in forum C++ Programming
    Replies: 2
    Last Post: 05-13-2008, 02:27 PM
  3. Global variable in shared library
    By krock923 in forum C Programming
    Replies: 5
    Last Post: 01-11-2008, 04:56 PM
  4. Problem calling external method from within a shared library
    By Major Tom in forum C++ Programming
    Replies: 0
    Last Post: 04-21-2007, 09:14 AM
  5. Problem with custom shared library
    By soothsayer in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 12:48 PM