TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Seeling
from: Rob Landley
date: 1995-08-22 21:03:10
subject: EMX/G++

>  RL> You see, GCC was developed under unix, and rather than go to a lot of
> work
>  RL> porting it they just use a .dll that emulates unix.
>  RL> (foreward slashes for filenames,
> Wrong, the OS/2 Dos Subsystem does this.

Does it?  I never really used the unix emulation.

>  RL> manager and everything.  If you have the developer's toolkit, you can
> even
>  RL> use SOM.)
> But not (yet) SOM2. According to EM, this has never been tested. The
> accompanying sample uses SOM1.

All the som stuff is in the toolkit.  It's seperate from the compiler.  If
the same som toolkit can create header files that work with Cset++, Watcom,
BC++, and metaware, it should work with EMX.

It's fairly straightforward, in a twisted peverted sort of mind-numbing way.

>  RL> that whenever you create a .dll file you need a .def file as one of the
>  RL> source files, but if you're just making text mode .exe files then all
> you
>  RL> need are normal C source files
> DLLs are not limited to PM/WPS programming. You can as well use DLLs for
> textmode applications.

I never said they were.  You're thinking .rc files.  Those are PM/WPS. 
.def are for .dll's.

They overlap considerably, of course, since the PM is made out of dll's,
and you can use .rc files to store text strings for a text mode program...

I see the source of the confusion:  "If you're just making text mode
.exe files then all you need are normal c source files."

For PM apps you need .rc files.  For .dll's you need .def files.  If either
the "text" or the ".exe" qualification goes away, you
need another file.

Well, .lib files don't...

Rob
 
--- Xblat
* Origin: The conversation pit, OS/2 in Boca Raton, FL (1:3638/42)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 3638/42 14 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.