Sign in to follow this  

enet not recognising definitions or directory

This topic is 1928 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey there,

so im using enet for a programmign project yet there are errors saying it can find the source headers and the functions, even though ive properly linked all the files, is this common for enet?

[CODE]
#include "main.h"
#include <enet/enet.h>
void redNovember::initNetwork()
{
enet_initialize();
}
void redNovember::shutdownNetwork()
{
atexit(enet_deinitialize());
}
[/CODE]

im using vs 2010 by the way.,
thanks for your input.

Share this post


Link to post
Share on other sites
sure, they are:

[CODE]
Error 1 error C1083: Cannot open include file: 'enet/enet.h': No such file or directory
24 IntelliSense: cannot open source file "enet/enet.h
25 IntelliSense: identifier "enet_initialize" is undefined
26 IntelliSense: identifier "enet_deinitialize" is undefined
[/CODE]

i've linked and included everything as the documentation states?

Share this post


Link to post
Share on other sites
In your project properties, there will be a c++ compiler option called something like "additional include directories". You need to add the parent of the 'enet' directory into that list (either as an absolute path, or a relative path from the project file).

Share this post


Link to post
Share on other sites
[quote name='Hodgman' timestamp='1344589674' post='4968019']
In your project properties, there will be a c++ compiler option called something like "additional include directories". You need to add the parent of the 'enet' directory into that list (either as an absolute path, or a relative path from the project file).
[/quote]

exactly, i have set them as a relative path as i said before, but still i get these errors :(

Share this post


Link to post
Share on other sites
I wasted a whole day on this bullshit with VS 2010, I found out it doesn't actually use any of the directories you change in the project properties unless you do a save all or restart VS 2010, maybe that is your problem.

Share this post


Link to post
Share on other sites

This topic is 1928 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this