View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0004537 | Spring engine | Linux | public | 2014-09-07 14:36 | 2017-09-24 19:11 | ||||
Reporter | Misolavera | ||||||||
Assigned To | abma | ||||||||
Priority | low | Severity | block | Reproducibility | always | ||||
Status | closed | Resolution | unable to reproduce | ||||||
Product Version | 97.0.1+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0004537: cannot compile with gcc 4.9.1 due to deprecated std class | ||||||||
Description | Following files won't compile due to std::auto_ptr deprecated. rts/lib/assimp/code/STEPFileReader.cpp rts/lib/assimp/code/IFCLoader.cpp | ||||||||
Steps To Reproduce | compile it with gcc 4.9.1 | ||||||||
Additional Information | Replace it with std::unique_ptr that do basically the same thing but with extended template features. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
cleanrock (reporter) 2014-09-07 16:40 |
I only get deprecation warnings here with 4.9.1: rts/lib/assimp/code/IFCLoader.cpp:539:26: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9.1/backward/auto_ptr.h:87) [-Wdeprecated-declarations] std::auto_ptr<aiNode> nd(new aiNode()); Are you using -Werror (Make all warnings into errors) ? |
cleanrock (reporter) 2014-09-07 16:52 |
You can also try one of these: -Wno-deprecated-declarations -Wno-deprecated -w |
Misolavera (reporter) 2014-09-07 17:11 Last edited: 2014-09-07 17:15 |
Maybe it's my configuration, I'm quite new at compiling spring :) I didn't defined any flag, so everything is default: cmake . make spring It says it's a warning so I ignored it but at the end, it doesn't link against it. When doing the modification, it does link fine. |
abma (administrator) 2014-09-07 18:41 |
please give the full output when you compile it. i'm using gcc 4.9.1, too and had no issues. which version of spring do you compile? |
Misolavera (reporter) 2014-09-07 22:11 Last edited: 2014-09-07 22:13 |
97.0.1-360 [A few hours later] I think I found out why the link against the Assimp lib was failing. I did use "make spring -j 4" and it was just bad luck I managed to reproduce it twice in a row before posting. I got a similar error on another part. Making a clean and make -j 3 or 2 worked fine each time. Sorry to have made you waste your time on this chair-keyboard interface issue. |
abma (administrator) 2014-09-08 00:25 |
next time please copy and paste the output. still i have no clue which error message you got. "std::auto_ptr deprecated." is clearly not the error, it was/is a warning. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-07 14:36 | Misolavera | New Issue | |
2014-09-07 16:39 | Misolavera | Tag Attached: not spring's fault | |
2014-09-07 16:40 | cleanrock | Note Added: 0013612 | |
2014-09-07 16:52 | cleanrock | Note Added: 0013613 | |
2014-09-07 17:11 | Misolavera | Note Added: 0013615 | |
2014-09-07 17:15 | Misolavera | Note Edited: 0013615 | View Revisions |
2014-09-07 18:41 | abma | Note Added: 0013617 | |
2014-09-07 18:41 | abma | Status | new => feedback |
2014-09-07 18:42 | abma | Relationship added | related to 0004014 |
2014-09-07 22:11 | Misolavera | Note Added: 0013618 | |
2014-09-07 22:11 | Misolavera | Status | feedback => new |
2014-09-07 22:13 | Misolavera | Note Edited: 0013618 | View Revisions |
2014-09-08 00:23 | abma | Status | new => closed |
2014-09-08 00:23 | abma | Assigned To | => abma |
2014-09-08 00:23 | abma | Resolution | open => unable to reproduce |
2014-09-08 00:25 | abma | Note Added: 0013619 | |
2017-09-24 19:11 | Kloot | Tag Detached: not spring's fault |