Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.os2.programmer.misc > #123
| From | "Alex Taylor" <mail.me@reply.to.address> |
|---|---|
| Newsgroups | comp.os.os2.programmer.misc |
| Subject | Re: EMX problem |
| Date | 2011-03-29 07:25 -0500 |
| Organization | Newscene Usenet News Service, http://www.newscene.com/ |
| Message-ID | <mdq090pMZSKk-pn2-7oo7BJ3iFn4N@localhost> (permalink) |
| References | <fV45K0OBJxbE-pn2-Po0DVV9WtXII@localhost> |
On Tue, 29 Mar 2011 10:56:19 UTC, "Dave Saville" <dave@invalid.invalid> wrote: > I am trying to fix a few of the niggles I and others have with YAOS. Glad to see some other people taking a crack at it. I just don't have the time these days. I never did much with my own builds except remove the broken 'ver' command. I still want to fix the instability with setting environment variables, and add the BEGIN/ENDLIBPATH stuff in, but again, that takes time I don't really have... > First I tried to build it with the current gcc but there were so many > errors, both in the C and linkage I gave up. > > I switched to my old emx setup and only get one warning and a link > fail. This is without any code mods. I decided to get it to > compile/link before messing with anything. > > The error I get is: > > gcc -O2 -Wall -c -o yaos.o yaos.cc > yaos.cc: In function `void setTitle(char *)': > yaos.cc:30: warning: ANSI C++ forbids cast to non-reference type used > as lvalue > gcc -O2 -Wall -o yaost.exe yaos.o util.o ycd.o ext.o file.o easysock.o > version.o -lvideo -lsocket yaos.def > yaos.o: Undefined symbol __16_DosSmSetTitle referenced from text > segment > make: *** [yaost.exe] Error 1 What I have here builds, although I get that warning too: gcc -O2 -Wall -Zomf -c -o yaos.obj yaos.cc yaos.cc: In function `void setTitle(char *)': yaos.cc:30: warning: ANSI C++ forbids cast to non-reference type used as lvalue gcc -O2 -Wall -Zomf -c -o util.obj util.cc gcc -O2 -Wall -Zomf -c -o ycd.obj ycd.cc ycd.cc:55: warning: `#ifdef' argument starts with a digit ycd.cc:143: warning: `#ifdef' argument starts with a digit gcc -O2 -Wall -Zomf -c -o ext.obj ext.cc gcc -O2 -Wall -Zomf -c -o file.obj file.cc gcc -O2 -Wall -Zomf -o yaosa.exe yaos.obj util.obj ycd.obj ext.obj file.obj -lvideo yaos.def I left the -Zomf in and it works OK. Also using GCC 2.8.1. I did have to change my CPLUS_INCLUDE_PATH to put e:\emx\include before e:\emx\include\cpp (otherwise getopt breaks). Various EMX-related paths I have: CPLUS_INCLUDE_PATH=e:/emx/include;e:/emx/include/cpp;e:/usr/include;e:/usr/loca l/include; LIBRARY_PATH=e:/emx/lib;e:/usr/lib;e:/usr/local/lib C_INCLUDE_PATH=e:/emx/include;e:/usr/include;e:/usr/local/include;e:/usr/local/ include/ncurses; OBJC_INCLUDE_PATH=e:/emx/include;e:/usr/include;e:/usr/local/include PROTODIR=e:/emx/include/cpp/gen -- Alex Taylor Fukushima, Japan http://www.socis.ca/~ataylo00 Please take off hat when replying.
Back to comp.os.os2.programmer.misc | Previous | Next — Next in thread | Find similar
Re: EMX problem "Alex Taylor" <mail.me@reply.to.address> - 2011-03-29 07:25 -0500
Re: EMX problem "Dave Saville" <dave@invalid.invalid> - 2011-03-29 13:56 +0000
Re: EMX problem "Alex Taylor" <mail.me@reply.to.address> - 2011-03-30 07:47 -0500
Re: EMX problem "Dave Saville" <dave@invalid.invalid> - 2011-03-30 10:40 +0000
csiph-web