Skip navigation.

Syndicate

Syndicate content

User login

Shitty Visual C++ Gotcha

Whilst building Wireshark I ran into a nasty gotcha in Visual C++. If you set a preprocessor definition in the Preprocessor screen and you use quotes, like _U_="", the IDE happily accepts it, but shit breaks wierdly. Errors like

 cl : Command line error D8003 : missing source filename 

and

 LINK : fatal error LNK1561: entry point must be defined

Came out of the woodwork. It turns out the quotes in the preprocessor definition, once applied to an actual command line, thoroughly fuck things up. How is it that we’re still dealing with shit like this in 2007?