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,
Have you tried
#define __open open
Dave
Hi Dave,
I did add it to lsystem.c and ttyin.c
Makes no diff, or did you mean to a other file ?
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