Problem in exporting a function

This is a discussion on Problem in exporting a function within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, I have a win32 dll workspace. In this workspace i have most of the files as .c files. ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    10

    Problem in exporting a dll function

    Hi all,

    I have a win32 dll workspace. In this workspace i have most of the files as .c files. I want to export one of the function from this dll. The function is a static function. so for that function if i export it in this way

    __declspec(dllexport) static rdiff_sig(const char *BasisPath, const char *SigPath);

    i am getting one error message as below.

    error C2201: 'rdiff_sig' : must have external linkage in order to be exported/imported


    What should i do to solve this problem.


    Thanks

    Datta K.
    Last edited by dattaforit; 12-01-2006 at 04:29 AM.

  2. #2
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    remove static as asked by the compiler
    and providing the return type will be also useful
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. wxWidgets link problem
    By cboard_member in forum C++ Programming
    Replies: 2
    Last Post: 02-11-2006, 01:36 PM
  2. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  3. Problem with function pointers
    By vNvNation in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2004, 06:49 AM
  4. Replies: 5
    Last Post: 02-08-2003, 06:42 PM
  5. I need help with passing pointers in function calls
    By vien_mti in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 10:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21