views:

705

answers:

2

Guys/gals: How can I resolve the following linking error: "LINK : fatal error LNK1561: entry point must be defined". What I was trying to do is simply recompiling MySQL Storage engine example with Visual Studio 2008.

+1  A: 

Are you trying to build it as EXE, when it is actually a library?

EFraim
+2  A: 

Not familiar with the 'MySQL Storage engine example' so dont know if its a library or a .exe etc. However, usually the linker is able to infer the correct entry point based on a combination of your settings for:

  • Configuration Properties -> Linker -> System -> SubSystem, and
  • Configuration Properties -> General -> Configuration type

See http://msdn.microsoft.com/en-us/library/f9t8842e.aspx

Brett