Skip navigation.
Home
The QNX Community Portal

View topic - Porting from QNX4 to LINUX

Porting from QNX4 to LINUX

For the old QNX2 and QNX4 RTOS

Porting from QNX4 to LINUX

Postby QNX4developer » Sun Nov 15, 2009 10:35 am

Hi,

The project i'm working with is in QNX4 RTOS.It has wcvector built-in classes and header files.I'm asked to port this code to Linux.

1. Can i compile this code in g++/Linux?If so,how it should be done?
Or do i have to provide separate implementation using STD::vector in order to compile it with g++/ubuntu Linux.

Please provide me with suggestions.

thanks,
New user.
QNX4developer
New Member
 
Posts: 1
Joined: Sun Nov 15, 2009 10:24 am

RE: Porting from QNX4 to LINUX

Postby mario » Mon Nov 16, 2009 2:10 pm

wcvector is a watcom thing, you should be able to replace it with std::vector
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby Tim » Mon Nov 16, 2009 2:12 pm

QNX4 used the Watcom compiler. That compiler is about 15+ years old now. The wcvector built in classes are WatComs attempt at creating STL back before STL became standard on C++.

So you are going to have to replace the wcvector classes with STD::vector as you surmrised (unless Watcom suddenly became open source when I wasn't looking).

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Postby mario » Mon Nov 16, 2009 9:51 pm

Yes Watcom is open source ( it's called openwatcom )
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 1 guest