If you are getting error "file format not recognized; treating as linker script
" while compiling C++ program using g++ in Ubuntu, then you might have used incorrect file extension for your code file.
As File names are is case sensitive in Linux the file extension that you have specified for your program code file also matters while compiling the code.
You should use ".CPP" (All in capital letters) or ".cpp" (All in small letters) extension to your code file.
No comments:
Post a Comment