Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compilation error on usleep #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed compilation error on usleep #144

wants to merge 1 commit into from

Conversation

mpdmanash
Copy link

I got compilation error that usleep was not defined.
I am using c++11 on Ubuntu 14.04.

The problem was solved by including

include <unistd.h>

I got compilation error that usleep was not defined.
I am using c++11 on Ubuntu 14.04.

The problem was solved by including
#include <unistd.h>
@sunzhec2702
Copy link

Hi ManashRaja,

I met this issue in my Ubuntu16.04 as well. But after changing the eigen version from the latest 3.3.1 to 3.2.1. This issue went away (and some other compile issues as well). Maybe you can try this as well :) .

@fangchangma
Copy link

I got compilation error that usleep was not defined.
I am using c++11 on Ubuntu 14.04.

The problem was solved by including

include <unistd.h>

Instead of adding #include <unistd.h> to every .cc files, you can put it in System.h instead. All other files include System.h in a nested manner.

Copy link

@scimad scimad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better place for #include <unistd.h> is System.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants