shared library for QNX

This is a discussion on shared library for QNX within the C Programming forums, part of the General Programming Boards category; Hi, I'm develop shared library for Linux, AIX and QNX. there is no problem for Linux and AIX, but in ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    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, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21