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

  • Home
  • SEARCH
  • 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 880399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:05:27+00:00 2026-05-15T12:05:27+00:00

So, I recently added a header file (and corresponding source file) to a project,

  • 0

So, I recently added a header file (and corresponding source file) to a project, along with a header file that file required, and an object file that the file required.

Everything compiles fine, unless I actually make a call to one of the functions declared in the newly added header file.

This is all using Visual Studio Express 2008.

To be more clear:
Added:

E4407B.h (My code)

E4407B.cpp (Also my code, compiling as c)

ni4882.h (not mine – from National Instruments)
ni4882.obj

When I call a function located in E4407B.h, I get the following error:

4>E4407B.obj : error LNK2005: _SA_GPIB_INTF already defined in test.obj
4>ni4882.obj : warning LNK4217: locally defined symbol _fclose imported in function _LoadFunction@4
4>ni4882.obj : warning LNK4217: locally defined symbol _fread imported in function _LoadFunction@4
4>ni4882.obj : warning LNK4217: locally defined symbol _fopen imported in function _LoadFunction@4
4>ni4882.obj : error LNK2019: unresolved external symbol __imp__rand referenced in function _LoadFunction@4
4>ni4882.obj : error LNK2019: unresolved external symbol __imp__srand referenced in function _LoadFunction@4
4>ni4882.obj : error LNK2019: unresolved external symbol __imp__time referenced in function _LoadFunction@4

test.c is where main is located.

Edit: I had in an error that shows up for building another solution which was in the build for some reason.

  • 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-15T12:05:28+00:00Added an answer on May 15, 2026 at 12:05 pm

    It sounds like your header is defining objects (_SA_GPIB_INTF, _fclose, etc.) when it should only be declaring them. Any objects that require storage must only be defined in a single source file.

    Also, the unresolved external symbol errors mean you’re missing a library in the linking process (looks like the c standard library).

    Without seeing the header code itself, it’s hard to get any more specific.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 491k
  • Answers 491k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this: var result = from c in dc.whatevers select… May 16, 2026 at 10:05 am
  • Editorial Team
    Editorial Team added an answer This excludes using broadcast and the onBind() function if I… May 16, 2026 at 10:05 am
  • Editorial Team
    Editorial Team added an answer We got it! Not totally sure what is going on… May 16, 2026 at 10:05 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I found some code recently where extern C was added in source file also
I recently added -pedantic and -pedantic-errors to my make GCC compile options to help
I have recently added the reCaptcha library for CodeIgniter (by copying files from the
Recently i've switched to PHP 5.3+ and after that migration i learned that the
We have a large Visual Studio 2005 C++/Mfc solution, 1 project with around 1300
Recently in our work, I've started getting some experience with SEO (finally). It's something
I've been making a wordpress theme recently and just now some of the code
In order to keep my Qt project somewhat organized (using Qt Creator), I've got
I just recently installed Winamp Song Requester wich is a Winamp web song requester
I recently started using Mercurial and like the way I have VCS protection for

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.