Check the linker. Usually that means another object file is being compiled at the same time that also contains a main function. There must only be one main function within all associated files.
More Related Contents:
- Why does flowing off the end of a non-void function without returning a value not produce a compiler error?
- How to automatically generate a stacktrace when my program crashes
- Inheriting constructors
- Embedding resources in executable using GCC
- C/C++ with GCC: Statically add resource files to executable/library
- Converting a pointer into an integer
- Declaring the array size with a non-constant variable
- Are function static variables thread-safe in GCC?
- gcc/g++: “No such file or directory”
- Array with size 0 [duplicate]
- What is the first (int (*)(…))0 vtable entry in the output of g++ -fdump-class-hierarchy?
- Is std::string ref-counted in GCC 4.x / C++11?
- Why does GCC generate 15-20% faster code if I optimize for size instead of speed?
- C++: When (and how) are C++ Global Static Constructors Called?
- Why does the enhanced GCC 6 optimizer break practical C++ code?
- Precompiled headers with GCC
- What is the difference between MinGW, MinGW-w64 and MinGW-builds?
- Compiling with -static-libgcc -static-libstdc++ still results in dynamic dependency on libc.so
- std::put_time implementation status in GCC?
- Overloaded lambdas in C++ and differences between clang and gcc
- GNU C++ how to check when -std=c++0x is in effect?
- Does a c/c++ compiler optimize constant divisions by power-of-two value into shifts?
- Template instantiation details of GCC and MS compilers
- Which types on a 64-bit computer are naturally atomic in gnu C and gnu C++? — meaning they have atomic reads, and atomic writes
- Does the restrict keyword provide significant benefits in gcc/g++?
- std::thread error (thread not member of std)
- Default libraries linked in by gcc?
- Multiple “could not be resolved” problems using Eclipse with minGW
- const auto std::initializer_list difference between Clang and GCC
- Undefined reference to process(std::__cxx11::basic_string … ) when compiling affdex linux sample applications