Gui without console

Mr Bellenot has suggested to Mr Hoinki that to suppress the console in a GUI application, one has to change LDOPT in the Makefile into:
LDOPT = -opt:ref /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
The answer of Mr Hoinki indicates that it works fine for him.
I have tried, and for me the link failed with:

MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
libVisuLitrani.dll : fatal error LNK1120: 1 unresolved externals
make: *** [libVisuLitrani.dll] Error 96

Is it because I use VC++ 7.0, and not VC++6.0 as Mr Hoinki? Does somebody knows the trick for VC++ 7.0?
Thanks a lot.

Hello FX,

you can define /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup only if you build an executable with entry point defined by main(), i.e :

int main(int argc, char **argv)
{
TApplication theApp(“App”, &argc, argv);

}

And not in the case of a dll, which seems to be the case in your example :

libVisuLitrani.dll : fatal error LNK1120: 1 unresolved externals

HTH,
Bertrand.

Thanks a lot Bertrand