🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3601

Problem with GCC 0.8f

#3601
From: CrazyMan
Date: Sun, 24 Jan 1993 22:39
40 lines
1879 bytes
Hi,

I'm using the EMX 0.8f gcc compiler.  I'm currently porting a program
that converts ZyXEL modem voice file formats to and from Soundblaster
VOC formats. The program is converted, but I want to distribute it as
a stand alone program, not requiring the EMX*.DLL files.  (When it is
done, I'll put it on the FTP site listed below with the MS-DOS versin
that is already there)

When I say:

gcc -o vcnvt.exe vcnvt.c

everything works fine.  However, when I add the -Zomf -Zsys options, I 
get the following:

======================================================================
[C:\kevin\src\zyxel]gcc -o vcnvt.exe vcnvt.c  -Zomf -Zsys

c:\emx\lib\crt0.obj(crt0.obj) : error L2029: '_entry2' : unresolved external

LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT

There was 1 error detected
======================================================================

I tried using "emxomf" to convert the crt0.o file to a new crt0.obj, but I
don't think I was using it correctly.  I tried:

emxomf -o crt0.obj crt0.o

I read something in the docs about the "crt0" requires the -m option.
Unfortunately, the -m option requires a symbol.  I tried using
_entry2, but that didn't solve the problem.

Does anyone have any suggestions?

Thanks
- Kevin Lowey (Lowey@Sask.USask.CA)
>>>>> Anonymous FTP to FTP.USASK.CA for DOS, OS/2, and Windows programs <<<<<
Technical Details
Message-ID: <1jv5rlINNbg8@access.usask.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!hal.com!decwrl!access.usask.ca!jester.usask.ca!lowey

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!hal.com!decwrl!access.usask.ca!jester.usask.ca!lowey
From: lowey@jester.usask.ca (CrazyMan)
Newsgroups: comp.os.os2.programmer
Subject: Problem with GCC 0.8f
Summary: Can't compile native OS/2 - LINK386 error
Keywords: GCC
Message-ID: <1jv5rlINNbg8@access.usask.ca>
Date: 24 Jan 93 22:39:49 GMT
Organization: University of Saskatchewan
Lines: 40
NNTP-Posting-Host: jester.usask.ca
X-Newsreader: TIN [version 1.1 PL7]