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

fdup: Undeclared identifier #113

Open
little-by opened this issue Jan 2, 2021 · 2 comments
Open

fdup: Undeclared identifier #113

little-by opened this issue Jan 2, 2021 · 2 comments

Comments

@little-by
Copy link

My problem: I compile the code in the win10 using vs2015. First, I compile and install the eigen3.

When I compile the openpano, I get the error, “'.serialize' must have class/struct/union D:\Libs\PCL\flann\include\flann\util\serialization.h”. Then I fix this by adding the following code in include/flann/util/serialization.h.

#ifdef _MSC_VER
BASIC_TYPE_SERIALIZER(unsigned __int64);
#endif

But I get the error, “fdup: Undeclared identifier”
How can I deal with it? I can't find useful information on the Internet.

@preethamam
Copy link

Same problem, did you find any solution on Windows 10?

@shivarajmd
Copy link

Since using MSVC I commented the line as shown below and was able to build it.

#ifdef _MSC_VER
std::tr2::sys::path _fbase(file);
auto fbase = _fbase.stem().c_str();
#else
char *fdup = strdup(file);
char *fbase = basename(fdup);
#endif
c_fprintf(colormap[line].c_str(), stderr, "[%s@%s:%d] ", func, fbase, line);
//free(fbase);

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

No branches or pull requests

3 participants