Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an application with several DLL's

Status
Not open for further replies.

clatimier

Programmer
Apr 11, 2003
26
FR
Hi

I've created an application and I have 2 generic dll's that I want to use in my application.

When I compile with only one DLL called, there's no problem, but when I try to compile with the 2 DLL's, when linking, I have the following :

Link Error : Duplicate symbol: $GlobalRequest
Link Error : Duplicate symbol: $GlobalResponse
Link Error : Duplicate symbol: $VCRRequest

Is there a solution ?

Thx
 
There is an check option in the Global Properties of the application called "Generate Template global data and ABC's as EXTERNAL". Check this ON in all your DLL applications. Read the Help or Language Reference for more information on the EXTERNAL attribute.
 
I still try this. But the result is that I get another link error which is :
Unresolved external $GlobalRequest
Unresolved external $VCRRequest
Unresolved external $GlobalResponse

So it does'nt corect my problem.
Another idea ?
Thx
 
The basic idea is that all the Global Data is declared in the Main EXE application and all the DLL applications declare it with an EXTERNAL attribute so that they all refer to the same memory location. Since some Global Variables are automatically declared by the templates & classes the check option is there to set the EXTERNAL attribute for these variables. Let's say you have three APPs - APP1 compiles to an EXE, APP2 & APP3 compiles to DLLs. For APP1, the Check option is OFF and for APP2 & APP3 the check option is ON. You will define the Frame in APP1 and set all the procedures defined in APP2 & APP3 and called in APP1 as External in APP1.

Why don't you check for any articles on multi-DLL applications?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top