ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry I'm lazy. I installed enet 1.3.13 and was trying to compile the host.c file but run into errors:
[bkeane@localhost enet-1.3.13]$ gcc -o host host.c `pkg-config --libs libenet`
Package libenet was not found in the pkg-config search path.
Perhaps you should add the directory containing `libenet.pc'
to the PKG_CONFIG_PATH environment variable
Does anyone know the gcc command to manually link enet and what files I need?
look: I'm a bit confused, at this moment I have no idea what do you want to achieve.
First: what OS is it? What did you install exactly, and how (you told you installed enet 1.3.13)?
What is in your enet-1.3.13 directory? Why do you think host.c is a program? or What do you mean by that?
As others have said, it is really unclear what you are trying to accomplish.
Please try to restate your question and include:
* Your distro and version
* What, exactly you are trying to accomplish - you ultimate goal, not the goal of the gcc command
Pleas also see this page and the links at bottom thereof for guidance in asking a good and complete question, so that members here may better help you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.