KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to compile and strip a very simple program in C++ with the g++ compiler (4.6.0 on Mac OSX). But while compiling i get a warning. source code: #include </usr/local/Cellar/gcc/4.6.0/gcc/include/c++/4.6.0/iostream> int main(){ std::cout << ("Hello World\n") ; } Terminal code: g++ hello.cc -Wall -std=c++0x -s /* or an alternative: */ g++ hello.cc -Wall -std=c++0x -o test -Wl,-s Compiler warning: ld: warning: option -s is obsolete and being ignored Somebody any idea's about this weird warning? Edit: The weird thing is the size does decrease when using the -s flag, the decreases from 9,216 bytes to 9,008. However when i use the following the size decreases to 8,896 bytes. cp hello hello_stripped strip hello_stripped
Tags (comma-separated)
Save Edits
Cancel