Solved

Compile error with VC++ 6.0

Posted on 2000-03-03
4
181 Views
Last Modified: 2010-04-10
When compiling my ocx I get:

error LNK2001: unresolved external symbol "long __cdecl APP_OpenAPP(long)" (?APP_OpenAPP@@YAJJ@Z)

My ocx is calling a dll that has function APP_OpenApp.

Any leads?

Didou

0
Comment
Question by:didou
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Expert Comment

by:tdubroff
ID: 2581982
Looks like your linker is looking for the function from its local .obj files.  

I'm not sure at all about this, but I think, sometimes .lib's exist for certain .dll's that somehow tell the linker that the function is located in a .dll so it doesn't have to freak out about it.
0
 
LVL 32

Expert Comment

by:jhance
ID: 2582009
THIS IS A DUPLICATE QUESTION!

For some reason this guy keeps posting this question.  It looks like it's up to 4 posts now.
0
 

Author Comment

by:didou
ID: 2588321
I certainly did not meant to be abnoxiouz and send it so many time!
I don't know why it was posted
so many time!

How do I delete the question and
reclaim my points?

Thanks,
Didou
0
 

Accepted Solution

by:
werlwind earned 50 total points
ID: 2650720
It looks to me like a C++ name mangling issue.  Generally when calling DLL functions from withing C++ you want to make sure that the DLL function declaration in the header file is declared as extern "C", for example:

extern "C"
{
   long App_OpenApp(long);
}

Or something similar.  This will prevent C++ from modifying the function name internally as it normally does.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question