Importing bare names
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Importing bare names

  1. #1
    Join Date
    Feb 2009
    Posts
    42

    Question Importing bare names

    Greetings, how do I import the stripped export names (no mangling) from C code

    A functions int Func()

    is exported by def file to MyDll.dll

    LIBRARY
    EXPORTS
    Func


    Now if I import from another source Func by providing

    exyern "C" int Func()

    /lib:MyDll.lib

    I get error error LNK2019: unresolved external symbol Func referenced in function main

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,020

    Re: Importing bare names

    how do I import the stripped export names (no mangling) from C code
    Are you sure the code is C and not C++?
    /lib:MyDll.lib
    What does this mean?
    Last edited by Igor Vartanov; October 5th, 2012 at 09:31 AM.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center