473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

why can't the linker resolve the overloads?

here's the header:
>>>>>>>>>>>>>>>>>>>>>>>>>>
#pragma once

using namespace System;

#define MapCascadeError(CasErrorEnum) \
static GeometryException* MapError(CasErrorEnum error, String*
message, Exception* innerException); \
static GeometryException* MapError(CasErrorEnum error, String*
message) { return MapError(error, message, NULL); } \
static GeometryException* MapError(CasErrorEnum error) { return
MapError(error, String::Empty); } \

public __gc class GeometryExceptionBuilder
{
public:
MapCascadeError(BRepBuilderAPI_EdgeError)
MapCascadeError(BRepBuilderAPI_WireError)
MapCascadeError(BRepBuilderAPI_FaceError)

private:
GeometryExceptionBuilder() { }

static GeometryException* ConstructException(String* message, String*
mappedDetails, Exception* innerException);
};

here's the source:>>>>>>>>>>>>>>

//
************************************************** *******************************
// BRepBuilderAPI_EdgeError mapping
//
************************************************** *******************************
GeometryException*
GeometryExceptionBuilder::MapError(BRepBuilderAPI_ EdgeError error,
String* message, Exception* innerException)
{ .... }

it includes an implementation like the above for each mapping described
in the header as well as the implementation of the of the
ConstructException method (in other words, everthing the class needs to
compile). and compile it does (successfully)

however, come link time, here's what i get:

LINK : error LNK2020: unresolved token (060008D5)
GeometryExceptionBuilder::MapError
LINK : error LNK2020: unresolved token (060008D8)
GeometryExceptionBuilder::MapError
LINK : fatal error LNK1120: 2 unresolved externals

if the linker is unable to resolve the overload, i can't see why. does
anyone have any insight?

thank you!

Dec 7 '05 #1
1 915
by the way, i'm using vc++7.1

Dec 7 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Eric | last post by:
Hello I receive (only in Release build) the following linker warning: LINK : warning LNK4089: all references to 'WS2_32.dll' discarded by /OPT:REF If I set WS2_32.lib in project properties...
59
by: Michael C | last post by:
eg void DoIt() { int i = FromString("1"); double d = FromString("1.1"); } int FromString(string SomeValue) {
6
by: Deepa via .NET 247 | last post by:
(Type your message here) Hi, My app (DLL) that was developed in VC6 is using ddao35u.lib toaccess the Access Database. When I try to build the same DLL using VC7 I get the followinglinker error....
4
by: Joel Whitehouse | last post by:
Hello All, I have a Visual C++ 2003 dll solution in a directory called "Antenna Test Range Control", and when I comile it, I get the error LNK1104: cannot open file "antenna.obj". When I remove...
3
by: ralphsieminsky | last post by:
A project compiles fine under VS 2005 RC without the /clr option. However, when /clr is turned on several errors appear: - A symbol exported from a DLL is not found by another DLL referencing...
10
by: Atif | last post by:
Hi I am here to solve a small confusion i have in "Overloads Overrides". "Overloading" says that the method's name should be same while no. of parameters and/or their datatypes should be changed...
6
by: yezi | last post by:
HI, ALL: I can not figure out the problem with compiling. the message is " /tmp/ccAxyQSj.o(.text+0x275): In function `main': : undefined reference to `sqrt' collect2: ld returned 1 exit...
1
by: ImamicPH | last post by:
Hi, My first post. How do you resolve linker errors? I have a simple header file that contains one function declaration. This function is used in another file (.cpp) in the definition of a...
0
by: ilanbm | last post by:
Hi We have an odbc driver that we wrote. This is actually a shared object which implements a set of SQLxxx functions. There is also another shared object that we did not write, which is the odbc...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.