How to add def file entry | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add def file entry

Hi all I have a solution which has def file... Def file has so many function name which are exported. I just created one more function and would like to export the same as well from def file. How to do this ? I just added name in def file and code suggest that linker error to get that file path

25th Jun 2021, 11:39 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Answer
0
Let me put it in other way... I have a solution which has one def file... This solution generated lib and DLL which is already in linker dependency and header in c++ input. Now , I just added one additional function in .h and added definition in .cpp.... I added name of function in .def file and then just builded solution. This updated or you can say created new DLL .. I am not able to use this newly added function... When I try to call that function, it throws linker error. Am I missing something in linker setting of new project or def entry ?
28th Jun 2021, 8:47 PM
Ketan Lalcheta
Ketan Lalcheta - avatar