OpenQNX :: The QNX Community Portal

May 17, 2008 - 11:59 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 37 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kasper
Post subject: MFC library to use in qnx.  PostPosted: Jan 07, 2008 - 10:39 AM
Active Member


Joined: Oct 30, 2006
Posts: 16

I made static library(test.lib) to Microsoft Visual C++ for use in qnx6.3.

I coded it ANSI-C format.

So.. is it possible to use in qnx??

If it is possible, how can make makefile?


Thank you for reading.
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject: RE: MFC library to use in qnx.  PostPosted: Jan 07, 2008 - 12:18 PM
Senior Member


Joined: Jul 22, 2004
Posts: 317

Just try it. Use one of your funtions declared inside your library and try compiling it under QNX (i doubt it will work).

gcc/ld documentation will tell you how to link to your library
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: MFC library to use in qnx.  PostPosted: Jan 07, 2008 - 03:48 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2675

MFC is not available on QNX6. Legally it cannot. Apparently Microsoft has a special license for MFC that prevent it's usage on NON Windows platform.

As for the library it kind of work, the problem is that gcc puts a _ in front of fonction name while Intel and VCC puts it after _. I once manage to create .o file on Windows with Visual C++ and link them under QNX6, but I had to create stud function of every library call. Got VERY ugly.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kasper
Post subject: RE: MFC library to use in qnx.  PostPosted: Jan 08, 2008 - 12:57 AM
Active Member


Joined: Oct 30, 2006
Posts: 16

Oh... then make object file(*.o) in qnx..

and include main project.

Thank you everybody!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.