Tuesday, June 15, 2010

VC++ fatal error LNK1104: cannot open file 'Export.def'

When you want to create a DLL file to use in C# windows application or from other applications then you may experience the below error:

fatal error

Exception: fatal error LNK1104: cannot open file 'xxx.def'

Reason:
You define the definition file from Project--> Project Properties. But the project won't get the definition file in the project path.

Solution:
Create or copy the definition file into the project root path.

2 comments:

  1. Thanks a million! This eroor was staring to annoy me

    ReplyDelete
  2. heelo sir i am follow ur blog u have a great articles i would like to request to you can share us with the tutorial of Data Layer covering Most of the Inser,Delete,Update(Execeute Non Query),Execute-Scalar,and Execute Reader and data table it will be great if u can share some tutorial with us
    thank you looking forward for ur reply

    ReplyDelete

Write your Comment: