PDA

View Full Version : sdl



Luca
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?

ArchMiffo
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[])
{
/*code*/

return 0;
}

But I could be way of.

Luca
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?

jirkamelich
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.