FROM : Charles Hamel
DATE : Sun Nov 18 18:21:22 2007
Hi
I have a C++ class definition in a file that looks like this:
class Vision {
public: void analyze(NSMutableArray* a);
};
The implementation of this class in located in a seperate file (.mm
extension) and compiled as Obj-C++ code.
I have an AppController ObjC class that has as an instance variable of
pointer to a Vision object. The AppController.mm file is also compiled
as Obj-C++. AppController.mm imports AppController.h which in turns
imports Vision.h.
In one of AppController's method, I call this : vision-
>analyze(newArray);
Everything compiles fine, except linker says :
"Vision::analyze(NSMutableArray*)", referenced from:
-[AppController testAction:] in AppController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have tried to specify the symbol visibility using
__attribute__((visibility("default"))) but that failed as well.
What am I missing ?
Thank you
Charles
e
DATE : Sun Nov 18 18:21:22 2007
Hi
I have a C++ class definition in a file that looks like this:
class Vision {
public: void analyze(NSMutableArray* a);
};
The implementation of this class in located in a seperate file (.mm
extension) and compiled as Obj-C++ code.
I have an AppController ObjC class that has as an instance variable of
pointer to a Vision object. The AppController.mm file is also compiled
as Obj-C++. AppController.mm imports AppController.h which in turns
imports Vision.h.
In one of AppController's method, I call this : vision-
>analyze(newArray);
Everything compiles fine, except linker says :
"Vision::analyze(NSMutableArray*)", referenced from:
-[AppController testAction:] in AppController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have tried to specify the symbol visibility using
__attribute__((visibility("default"))) but that failed as well.
What am I missing ?
Thank you
Charles
e
| Related mails | Author | Date |
|---|---|---|
| Charles Hamel | Nov 18, 18:21 | |
| Charles Hamel | Nov 18, 18:22 | |
| Scott Ribe | Nov 18, 18:24 | |
| Charles Hamel | Nov 18, 18:27 | |
| stephen joseph but… | Nov 18, 19:11 | |
| Charles Hamel | Nov 18, 19:31 | |
| stephen joseph but… | Nov 18, 19:43 | |
| Charles Hamel | Nov 18, 20:50 | |
| Shawn Erickson | Nov 18, 21:11 | |
| Herb Petschauer | Nov 18, 21:21 | |
| stephen joseph but… | Nov 18, 21:26 | |
| Jonathan Prescptt | Nov 20, 02:21 |






Cocoa mail archive

