home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!not-for-mail
- From: "Stefan Breuer" <UJD9@DKAUNI2.BITNET>
- Newsgroups: comp.os.os2.programmer
- Subject: compile files separately with emx?
- Date: 25 Jan 1993 20:47:45 +0100
- Organization: University of Karlsruhe, Germany
- Lines: 49
- Sender: usenet@nz12.rz.uni-karlsruhe.de
- Distribution: world
- Message-ID: <1k1g51INNhgl@nz12.rz.uni-karlsruhe.de>
-
- Hello, out there!
-
- Using emx, I am currently writing a program split into two separate
- source files. While compiling and linking it, I've experienced a
- problem:
-
- When I compile and link it completely in one command, i.e.
- gcc -o Prg1.exe Prg1.cc Prg2.cc Prg1.def Prg1.map -Zomf -Zsys
- everything works fine. This should be proof that the program itself
- and environment variables are OK.
-
- When I try to compile them separately by
- gcc -c Prg1.cc
- gcc -c Prg2.cc
- emxomf -s -mmain -o Prg1.obj Prg1.o
- emxomf -s -o Prg2.obj Prg2.o
- emxomfld -o Prg1 -s -lc -lgcc -los2 -lsys Prg1.obj Prg2.obj Prg1.def Prg1.map
- it just won't run and bleeps at me with an error SYS3175.
- Why???? I've been through the docs a dozen times (and yes, I converted
- the libs). It doesn't even give me an error message while compiling
- and linking, everything looks great!?!?!
- I also tried to connect gcc ... and emxomf... by using
- gcc -c Prg1.cc -Zomf
- but then the linker complains that the program has no starting address
- and when I try to start it, only the settings notebook pops up.
-
- I'm desperate! I don't want to compile all the stuff again and again
- when I made only a little change in a little module!!!
-
- Thanks for your help,
- Stefan
-
-
- =====================================================================
- Stefan Breuer | ujd9@ibm3090.rz.uni-karlsruhe.de
- Universitaet Karlsruhe | oder / or
- University of Karlsruhe, Germany | ujd9@dkauni2.bitnet
- ---------------------------------------------------------------------
- VIGILIA PRETIUM LIBERTATIS
- =====================================================================
-
-
- =====================================================================
- Stefan Breuer | ujd9@ibm3090.rz.uni-karlsruhe.de
- Universitaet Karlsruhe | oder / or
- University of Karlsruhe, Germany | ujd9@dkauni2.bitnet
- ---------------------------------------------------------------------
- VIGILIA PRETIUM LIBERTATIS
- =====================================================================
-