• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Insight into Compiler Errors?

geekybear

Senior member
fatal error 2 unresolved externals

unresolved symbol_main


what does this mean? more importantly, how can i fix this? i'm writing this ridiculous program and these stupid errors are standing in the way of me finishing. i'm programming with classes (which is new to me) and i'm very unfamiliar with these messages
 
An "unresolved symbol" is a symbol, either a variable, function, method, or class name, that the compiler found a reference to in your code, but can't match up to a declaration.

For example, if you write code that calls function foo(), but forget to actually write the function foo(), you will get the error "unresolved symbol foo".

You either forgot to include the main() function in your code, or there is a typo ( like declaring it as "int Main()" or "intmain()" ), that is causing it to appear different to the compiler.

Even if you are writing in C++ and using classes and objects to do the work in your program, you still need a main() function where execution of your code begins.
 
Back
Top