|
|
Classification: |
C++ |
Category: |
Development |
Created: |
07/31/2000 |
Modified: |
08/28/2001 |
Number: |
FAQ-0510 |
Platform: |
ER5 |
|
Question: How to remove VC++ 6.0 Link Warnings on ER5
Answer: Some of the changes made by Microsoft in Visual C++ version 6.0 had an unexpected impact on the linking process when compiling
certain files (e.g. Eikon Applications, OPXs) with the ER5 SDKs. Whilst all valid code should link OK with Visual C++ 5.0,
you will almost always get a warning under version 6.0 which looks something like this (depending on what you're compiling):
Helloeik.obj : warning LNK4197: export "?NewApplication@@YAPAVCApaApplication@@XZ" specified multiple times; using first specification
Although this warning can be safely ignored, it is also possible to prevent it happening by telling the Visual C++ linker
to ignore the .DEF file which specifies these exports - for example the APP.DEF file in \epoc32\release\wins\ for Eikon applications.
You can do this selecting the Link page of the Project | Settings dialog. There should be a command line in the Project Options
which looks like - this can be deleted and all should be well.
|
|
|