• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Is there a version of GCC that'll run & target OS/2 2.0?

Started by neozeed, 2009.11.28, 22:10:55

Previous topic - Next topic

neozeed

I seem to have misplaced all my other OS/2 stuff besides 1.3 & 2.0 .... Anyways I've been working with a C port of tradewars... and I'd like to put together a 32bit build of it....

I do have Watcom 11 but it's not exactly compatible with 2.0 ....

Anyways, any pointers to some 32bit C compiler that'll run on 2.0 is appreciated!

Oh my port is here:  https://sourceforge.net/projects/tradewarsc/

Andreas Kohl


neozeed

Quote from: Andreas Kohl on 2009.11.29, 05:30:03
GCC from EMX 0.9d should still work with OS/2 2.0.

http://hobbes.nmsu.edu/h-browse.php?dir=/pub/os2/dev/emx/v0.9d



Ok, thanks, I was under the impression that 2.0 was left out of the emx race...I'll certainly install it!

neozeed

Wow thanks, I spent like FOREVER looking for emx 0.8f (looks like the old stuff is LONG gone)...

Anyways my stuff compiled with no issues right out of the gate!.. and runs!

I'll just have to dig into how to do some file locking, and some other stuff...

I don't suppose anyone has any idea where to get the MS SQL server client stuff for OS/2?

I do have SQL Server 4.21 (for NT) but my CD doesn't have any client components... :(


neozeed

I just found that the sybase client  ( http://hobbes.nmsu.edu/download/pub/os2/apps/database/sybos2.zip ) will work!

emx actually compiled the example1 program, now I've got to convert the libraries (I hope it can) and link away...

--edit

I found it.. first generate the OMF libraries...
Quotecd \emx\lib
omflibs

Then setup the sql connection..

Quotecd \sql10\bin
sqledit

edit both of the 'sybase' stuff to point to your sql server... The connection string looks like this:
Quote\\SERVERNAME\pipe\sql\query

Save the file, and test with sybping.exe


Then build the example...
Quotegcc -Zomf example1.c -I..\..\include -llibsybdb.lib -L\sql10\libs


And with some luck you'll get:

QuoteMsg 5701, Level 0, State 2
Server 'TRADEWARS',
   Changed database context to 'master'.
Msg 5703, Level 0, State 1
Server 'TRADEWARS',
   Changed language setting to 'us_english'.


System Table Objects:

sysobjects S 1 Jan  1 1900 12:00:00:000AM
sysindexes S 2 Jan  1 1900 12:00:00:000AM
syscolumns S 3 Jan  1 1900 12:00:00:000AM
systypes S 4 Jan  1 1900 12:00:00:000AM
sysprocedures S 5 Jan  1 1900 12:00:00:000AM
syscomments S 6 Jan  1 1900 12:00:00:000AM
syssegments S 7 Jan  1 1900 12:00:00:000AM
syslogs S 8 Jan  1 1900 12:00:00:000AM
sysprotects S 9 Jan  1 1900 12:00:00:000AM
sysusers S 10 Jan  1 1900 12:00:00:000AM
sysalternates S 11 Jan  1 1900 12:00:00:000AM
sysdepends S 12 Jan  1 1900 12:00:00:000AM
syskeys S 13 Jan  1 1900 12:00:00:000AM
sysdatabases S 30 Jan  1 1900 12:00:00:000AM
sysusages S 31 Jan  1 1900 12:00:00:000AM
sysprocesses S 32 Jan  1 1900 12:00:00:000AM
syslogins S 33 Jan  1 1900 12:00:00:000AM
syslocks S 34 Jan  1 1900 12:00:00:000AM
sysdevices S 35 Jan  1 1900 12:00:00:000AM
sysmessages S 36 Jan  1 1900 12:00:00:000AM
sysconfigures S 37 Jan  1 1900 12:00:00:000AM
syscurconfigs S 38 Jan  1 1900 12:00:00:000AM
sysservers S 40 Sep 15 1992  5:04:13:710PM
sysremotelogins S 41 Sep 15 1992  5:04:13:710PM
syslanguages S 44 Sep 15 1992  5:04:13:710PM
syscharsets S 45 Sep 15 1992  5:04:13:710PM

Procedure Objects:

sp_tables P 108527420 Nov 27 2009  9:59:29:656AM
sp_statistics P 124527477 Nov 27 2009  9:59:31:750AM
sp_columns P 156527591 Nov 27 2009  9:59:33:240AM
sp_fkeys P 172527648 Nov 27 2009  9:59:34:373AM
sp_pkeys P 188527705 Nov 27 2009  9:59:35:656AM
sp_stored_procedures P 204527762 Nov 27 2009  9:59:36:546AM
sp_sproc_columns P 236527876 Nov 27 2009  9:59:38:180AM
sp_table_privileges P 252527933 Nov 27 2009  9:59:39:050AM
sp_column_privileges P 268527990 Nov 27 2009  9:59:40:883AM
sp_server_info P 284528047 Nov 27 2009  9:59:41:993AM

I'm using OS/2 2.0 with the lanman.os2 client on the Windows NT 4.0 server CD, along with NT 4.0 with NetBEUI and SQL server 4.21 ...   From what I understand this ought to work with 6.0 & 6.5.. I'm not sure about sql 7.0 & beyond, but you never know...