View Full Version : sdl

11-28-2002, 06:15 AM
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?

11-28-2002, 10:08 AM
I think you can get that error if your main function doesn't look like this:

int main(int argc, char* argv[])

return 0;

But I could be way of.

12-10-2002, 08:28 AM
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?

12-10-2002, 10:28 AM
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.