<p>I've got a Palm OS/Garnet 68K application that uses a third-party static library built with CodeWarrior.  Can I rebuilt the application using PRC-Tools, the port of GCC for the Palm OS platform and still link with the third-party library?</p>

[{'answer_id': 17128, 'author': 'Ben Combee', 'author_id': 1323, 'author_profile': 'https://Stackoverflow.com/users/1323', 'pm_score': 2, 'selected': False, 'text': "<p>No, CodeWarrior uses a different object file format than PRC-Tools.  Also, the compiler support libraries are different, so even if the code could be linked together, it may use symbols in a different way.</p>\n\n<p>However, if you can wrap the third-party library into a shared library using CodeWarrior, then you should be able to call it from PRC-Tools applications.  The shared library interface works across tools, but shared libraries have limited system support, so you'll need to be sure the original code doesn't use global variables for this to work.</p>\n"}, {'answer_id': 67969, 'author': 'Steve Lemke', 'author_id': 9733, 'author_profile': 'https://Stackoverflow.com/users/9733', 'pm_score': 3, 'selected': True, 'text': '<p><em>(Expanding on Ben\'s original answer... not sure of the exact etiquette for that but I can\'t edit yet so I\'ll re-post)</em></p>\n\n<p>No, CodeWarrior uses a different object file format than PRC-Tools. Also, the compiler support libraries are different, so even if the code could be statically linked together, it may use symbols in a different way.</p>\n\n<p>However, if you can wrap the third-party static library into a Palm OS shared library using CodeWarrior, then you should be able to call it from PRC-Tools applications. The Palm OS shared library interface works across tools, but shared libraries have limited system support so you\'ll need to be sure the original code doesn\'t use global variables for this to work.</p>\n\n<p>For more information on shared libraries, see <a href="http://www.isaac.cs.berkeley.edu/pilot/shlib.html" rel="nofollow noreferrer" title="Shared libraries on the Palm Pilot">Shared libraries on the Palm Pilot</a>.</p>\n'}]
['https://Stackoverflow.com/questions/17127', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1323/']