DEF file syntax error in visual studio 2012

I have a vs project that will not compile after I upgraded to visual studio 2012. This is a win32 dll project and it complains about the def file. This is a def file,

LIBRARY test.dll VERSION 3.1.4.1 EXPORTS addNumbers @1 

and this is the error that I get when I compile the project in visual studio 2012 final.

 Source.def(2): fatal error LNK1118: syntax error in 'VERSION' statement 

What bothers me is that it works great with visual studio 2008 and 2010.

Any idea what is going wrong here?

Thanks Sunil

+6
source share
1 answer

VERSION 3.1.4.1

DEF files are old. Back in the good old days, programmers only ever needed two versions, main and minor. The idea of ​​adding a revision number and an assembly was raised by the manager, not the programmer. Build number, wtf?

You will need to agree to VERSION 3.1 . And yes, this mistake was silently ignored for a very long time. No more, the manager finally found out :)

Use version resource .

+14
source

Source: https://habr.com/ru/post/958213/


All Articles