OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000530OMNeT++Installer / Productizingpublic2012-01-25 10:032017-02-01 17:19
Assigned Toandras 
StatusresolvedResolutionwon't fix 
PlatformOSOS Version
Product Version4.2.1 
Target VersionFixed in Version5.1pre3 
Summary0000530: OMNeT++ does not compile with -ansi flag

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 In member function 'int FileReader::readFileEnd(void*)': error: '_fileno' was not declared in this scope In member function 'void FileReader::fillBuffer(bool)': error: '_fileno' was not declared in this scope In member function 'bool FileReader::isLineStart(char*)': error: '_fileno' was not declared in this scope In function 'const char* strnistr(const char*, const char*, int,
bool)': error: 'strncasecmp' was not declared in this scope In member function 'int64_t FileReader::getFileSizeInternal()': 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'
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
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.

- Issue History
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
Powered by Mantis Bugtracker