Hi there,
I noticed to my amazement that a program I had open would run in Debug but not in Release version. When I tried to run it in Release version it threw the C2102 error code
'&' requires l-value.
I did a little research and it seems it's related to either passing the address of a temporary, or passing the address of a definition rather than an actual object.
Needless to say I got all caught up in some of the _DEBUG includes in the program thinking that was relevant. Picked over everything in the settings until I eventually found what it was and it was this:
For some reason in the Linker settings where System is concerned on the Release version it was set to CONSOLE not WINDOWS. When I changed that it ran fine.
Ok so I fixed the problem. But that doesn't mean I really understood it. I was wondering if anyone else could give me a bit more insight into exactly why this happens?
Thanks
