[ENet-discuss] Library inclusion question
Bruce Mitchener
bruce at cubik.org
Fri Apr 30 00:27:06 PDT 2004
Jos Elkink wrote:
> I'm a new user of enet and relatively inexperienced with C, so I'm a
> little afraid I ask a really dumb question. But I can't figure out the
> problem, so perhaps someone here can help.
>
> My code compiles fine, but when I try to link, I get the following errors:
>
> g++ -L/usr/lib -L/usr/local/lib -lenet -lglut -lGLU -lGL -lglpng -lcrypt
> -lnsl -lm -o client client.o communicator.o configuration.o frontscreen.o
> main.o mainwindow.o
Try re-ordering the args to g++ so that -lenet is last, after all of the
.o files.
I don't recall offhand if enet uses a static or dynamic lib on Linux,
but if static, then that should fix your problem. :)
- Bruce
More information about the ENet-discuss
mailing list