in Search

CSampleDLL compile errors [RESOLVED]

Last post 06-06-2006, 10:21 by yachtfund. 2 replies.
Sort Posts: Previous Next
  •  06-06-2006, 9:21 17940

    CSampleDLL compile errors [RESOLVED]

    Hi All

    Im having problems compiling the CSampleDLL and get the following error:-

    --------------------Configuration: CSampleDLL - Win32 Debug--------------------
    Linking...
    CSampleDLL.def : error LNK2001: unresolved external symbol SumArray
    Debug/CSampleDLL.lib : fatal error LNK1120: 1 unresolved externals
    LINK : fatal error LNK1141: failure during build of exports file
    Error executing link.exe.

    CSampleDLL.dll - 3 error(s), 0 warning(s)

    Im new to C++ and thought compiling this would be easy....

    My aim is to write a DLL that will take a strategy ID and a buy or sell signal from MetaStock. I then want to pass this info to a VB app that will then work out the money management and send my orders to InteractiveBrokers. Thought I would mention it just incase someone else has already done it and was feeling EXTREMELY generous.

    Thanks All

    YachtFund
  •  06-06-2006, 9:48 17941 in reply to 17940

    Re: CSampleDLL compile errors [RESOLVED]

    Check your definition file ( .def ) and make sure the function you export is called SumArray ...

    Patrick :mrgreen:
    My Site
  •  06-06-2006, 10:21 17942 in reply to 17940

    Re: CSampleDLL compile errors [RESOLVED]

    Magic, thanks for that.

    I think that means the MDK sample is wrong. Unless I changed it by accident.
View as RSS news feed in XML