I have downloaded SDL. When I write a program the linker of C++ Builder 5 gives me this error:
[Linker Error] Unresolved external ‘_main’ referenced from C:\BORLAND\CBUILDER5\LIB\C0X32.OBJ
Can anyone tell me why?
I have downloaded SDL. When I write a program the linker of C++ Builder 5 gives me this error:
[Linker Error] Unresolved external ‘_main’ referenced from C:\BORLAND\CBUILDER5\LIB\C0X32.OBJ
Can anyone tell me why?
I think you can get that error if your main function doesn’t look like this:
int main(int argc, char* argv[])
{
/code/
return 0;
}
But I could be way of.
I don’t know how, but C++Builder now compile my project, but in the runtime it gives me this error:
…\sdlProj3.exe faulted with message: ‘access violation at 0x00401000:
write of address 0x00401000’
Can anyone explain me what does it mean, how i can fix it?
I got the same problem, it was as far as i remember because i deleted this part __fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
but i’m not sure, so at least try this.