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

Error Compiling Library from Source #2

Open
Necrote opened this issue Apr 24, 2020 · 1 comment
Open

Error Compiling Library from Source #2

Necrote opened this issue Apr 24, 2020 · 1 comment

Comments

@Necrote
Copy link

Necrote commented Apr 24, 2020

Trying to compile Release/ using g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 gives the following error
errorLog.txt

Excerpt of the above error log file:

Building file: ../source/CreateContextOperation.cpp
Invoking: GCC C++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"source/CreateContextOperation.d" -MT"source/CreateContextOperation.d" -o"source/CreateContextOperation.o" "../source/CreateContextOperation.cpp"
../source/CreateContextOperation.cpp: In member function ‘bool lpm::CreateContextOperation::ReadLearningTraces(const std::vectorlpm::File*&, std::map<long unsigned int, std::vectorlpm::TraceVector >&)’:
../source/CreateContextOperation.cpp:1860:41: error: redeclaration of ‘std::map<lpm::TPNode*, lpm::TraceVector>::iterator iter’
map<TPNode*, TraceVector>::iterator iter = partNodeTraceVectorMap.find(partitionParentNode);
^
In file included from ../source/../include/Reference.h:50:0,
from ../source/../include/Operations.h:52,
from ../source/../include/CreateContextOperation.h:52,
from ../source/CreateContextOperation.cpp:47:
../source/CreateContextOperation.cpp:1845:42: note: ‘std::vectorlpm::Event*::const_iterator iter’ previously declared here
foreach_const(vector<Event*>, events, iter) // fill in the proper trace vectors
^
../source/../include/Defs.h:106:24: note: in definition of macro ‘foreach_const’
for(T::const_iterator i = (_c).begin(); i != (_c).end(); ++i)
^
make: *** [source/CreateContextOperation.o] Error 1

source/subdir.mk:150: recipe for target 'source/CreateContextOperation.o' failed

@rzshokri
Copy link
Member

it should be working now for you; we updated a file to fix the issue in compiling with recent versions of gcc

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

2 participants