Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error

0 views
Skip to first unread message

Tellerbop

unread,
Apr 1, 2009, 1:59:29 PM4/1/09
to
Hoi all,

I try to compile a prog , but with make i get error about ___open.
knut says> Tellie: EMX has __open, my gcc/libc doesn't - just use open
there and it will translate it correctly.
Wich emx file do i need?
I don't get it working yet.
Any have a idea what i must do?
This is error i get:

weakld: error: Unresolved symbol (UNDEF) '___open'.
weakld: info: The symbol is referenced by:
U:\tmp\ldconv_lsystem_o_f08349d3aa14152468.obj
U:\tmp\ldconv_ttyin_o_f08349d3aa141af4b0.obj
Ignoring unresolved externals reported from weak prelinker.
Error! E2028: ___open is an undefined reference
file
u:/tmp\ldconv_lsystem_o_f08349d3aa14152468.obj(ldconv_lsystem_o_f08349
d3aa14152468.obj): undefined symbol ___open
file
u:/tmp\ldconv_ttyin_o_f08349d3aa141af4b0.obj(ldconv_ttyin_o_f08349d3aa
141af4b0.obj): undefined symbol ___open
make.exe: *** [less.exe] Error 1


--
With the best regards from the Netherlands,

Dave Yeo

unread,
Apr 1, 2009, 4:19:17 PM4/1/09
to

Have you tried
#define __open open

Dave

Tellerbop

unread,
Apr 1, 2009, 4:53:47 PM4/1/09
to
On Wed, 1 Apr 2009 20:19:17 UTC, Dave Yeo <dave....@gmail.com>
wrote:

Hi Dave,

I did add it to lsystem.c and ttyin.c
Makes no diff, or did you mean to a other file ?

Dave Yeo

unread,
Apr 1, 2009, 6:11:20 PM4/1/09
to

If it is lsystem.c and ttyin.c that refer to the function, it should work.
You could always try replacing __open with open in the code.
btw, from <emx/syscalls.h>
int __open (__const__ char *name, int flags, unsigned long size);
from <io.h>
int open (__const__ char *, int, ...);
not sure what ... represents but they do look interchangable though I'm
sure gcc will complain when compiling. What warnings do you get when
compiling lsystem.c and ttyin.c?
Dave

0 new messages