File format not recognized; treating as linker script

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

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...