Anonymous | Login | 2022-06-25 10:32 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000530 | OMNeT++ | Installer / Productizing | public | 2012-01-25 10:03 | 2017-02-01 17:19 | ||||
Reporter | michael | ||||||||
Assigned To | andras | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | won't fix | ||||||
Platform | OS | OS Version | |||||||
Product Version | 4.2.1 | ||||||||
Target Version | Fixed in Version | 5.1pre3 | |||||||
Summary | 0000530: OMNeT++ does not compile with -ansi flag | ||||||||
Description | Hi, if I define the -ansi flag for CFLAGS_DEBUG/CFLAGS_RELEASE in configure user than the OMNeT++ make fails: g++ -c -O2 -DNDEBUG=1 -ansi -fno-stack-protector -ftree-vectorize -finline-funct ions -march=native -mfpmath=sse -fsee -mtune=native -I/usr/include -fno-stack- protector -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -I. -Id:/Tools/omne tpp-4.2.1/include/platdep -o d:/Tools/omnetpp-4.2.1/out/gcc-release/src/common/f ilereader.o filereader.cc filereader.cc: In member function 'int FileReader::readFileEnd(void*)': filereader.cc:93:5: error: '_fileno' was not declared in this scope filereader.cc: In member function 'void FileReader::fillBuffer(bool)': filereader.cc:240:9: error: '_fileno' was not declared in this scope filereader.cc: In member function 'bool FileReader::isLineStart(char*)': filereader.cc:285:12: error: '_fileno' was not declared in this scope filereader.cc: In function 'const char* strnistr(const char*, const char*, int, bool)': filereader.cc:532:95: error: 'strncasecmp' was not declared in this scope filereader.cc: In member function 'int64_t FileReader::getFileSizeInternal()': filereader.cc:574:26: error: 'fileno' was not declared in this scope make[2]: *** [d:/Tools/omnetpp-4.2.1/out/gcc-release/src/common/filereader.o] Error 1 make[2]: Leaving directory `/d/Tools/omnetpp-4.2.1/src/common' | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
(0001304) andras (administrator) 2017-02-01 17:19 |
According to the GCC manual, "[-ansi] is equivalent to -std=c++98". Since 5.1, OMNeT++ requires C++11. When compiling with -ansi, we indeed get a lot of errors due to unrecognized C++11 constructs such as local type inference using "auto". Thus, looks like -ansi cannot be supported. |
![]() |
|||
Date Modified | Username | Field | Change |
2012-01-25 10:03 | michael | New Issue | |
2017-02-01 17:19 | andras | Note Added: 0001304 | |
2017-02-01 17:19 | andras | Status | new => resolved |
2017-02-01 17:19 | andras | Fixed in Version | => 5.1pre3 |
2017-02-01 17:19 | andras | Resolution | open => won't fix |
2017-02-01 17:19 | andras | Assigned To | => andras |
Copyright © 2000 - 2022 MantisBT Team |