Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6036971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:00:15+00:00 2026-05-23T06:00:15+00:00

I can successfuly build and use a library. The later only if both the

  • 0

I can successfuly build and use a library. The later only if both the library and the other project is in the same solution….
I copied the isam.lib isam.dll isam.exp isam.h under a folder called lib…

Then i created a new solution..

Set linker -> Input to use my isam.lib … Building fails, cant find that file…
Set VC++ Directories Include Directories and Library Directories to the lib folder…

Build is successful..

Also i set path for C/C++ General Additional include Directories
Set Linker General Additional library directories

Build is ok….

Then i include my isam file..

    #include "stdafx.h"
#include <isam.h>

    int _tmain(int argc, _TCHAR* argv[])
    {
        isopen("lamogio",2);
        return 0;
    }

Building fails…

Error 1 error LNK2019: unresolved external symbol “__declspec(dllimport) int __cdecl isopen(char const *,int)” (_imp?isopen@@YAHPBDH@Z) referenced in function _wmain C:\Users\Parhs\documents\visual studio 2010\Projects\testdll2\testdll2\testdll2.obj testdll2

Error 2 error LNK1120: 1 unresolved externals C:\Users\Parhs\documents\visual studio 2010\Projects\testdll2\Debug\testdll2.exe 1 1 testdll2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:00:16+00:00Added an answer on May 23, 2026 at 6:00 am

    Well, let’s assume you told the linker to link to isam.lib with the Linker, Input, Additional Dependencies setting. Then the possible cause of the linker error is that you wrote the isam code in C and you are using it in a C++ program. You have to tell the compiler that the code was written in C:

    #include "stdafx.h"
    extern "C" {
        #include <isam.h>
    }
    

    The more typical solution is to put that in the isam.h file so that it is usable either way. Like this:

    #ifdef __cplusplus
      extern "C" {
    #endif
    
    // The declarations
    //...
    
    #ifdef __cplusplus
    }
    #endif
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't build successfully project in VS2010 it shows me error: Error 579 Unable
I have recently begun to use the EF v4 Code Only library for some
https://github.com/SimonVT/android-numberpicker I am trying to use this library. But I can't successfully use the
I have a project that I can build successfully with mvn clean install .
I am trying to build my Android project with Ant. Whenever I use Eclipse
I had a login page. once user successfuly logged in, they can view and
I had to modify some open source code to use in a C project.
how can I set up a Universal project which has support for iAd (just
I'm working on a C# 4.0 project in VS2010 and needed to use some
I've built a static library that makes heavy use of the Core Data framework.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.