symbol-not-found

Xcode print symbol not found for my C function which used in Objective-C method body

拜拜、爱过 提交于 2019-12-23 03:29:11
问题 Xcode build prints this error . Undefined symbols: "EGViewportDimensionMake(unsigned int, unsigned int, unsigned int, unsigned int)", referenced from: -[Renderer render] in Renderer.o ld: symbol(s) not found collect2: ld returned 1 exit status I cannot figure out what's the problem. I'm not good at classic C syntax. These are the function source code files: EGViewportDimension.h #import <Foundation/Foundation.h> struct EGViewportDimension { NSUInteger x; NSUInteger y; NSUInteger width;

Objective-c++ symbol not found strangeness

末鹿安然 提交于 2019-12-10 14:16:15
问题 hej.h void hej(); hej.m void hej(){} main.mm #import "hej.h" int main(int argc, char *argv[]) { } This gives me: "hej()", referenced from: _main in main.o symbol(s) not found If I rename main.mm to main.m (single m), or hej.m to mm or cpp, then it works. (Though none of those "solutions" are preferable. Imagine you want to use a c-lib in a objc++ environment - you wouldn't wanna change the entire lib, maybe even couldn't, and you need to use it in objc++.) What exactly is going on here? 回答1:

Xcode code sense and cmd+click to symbol doesn't work for 1 of my projects

社会主义新天地 提交于 2019-11-28 04:29:42
I've been using Xcode 4.3.1 since it came out now and i've worked on many different projects since. Everything has always worked fine until this 1 new project i'm working on. The code completion/code sense never finds anything or when i 'Command+Click' a variable or class normally it would jump to that but now i'm just getting 'Symbol Not Found'. If I open one of my older project while this bad one is open, the old ones still work for code sense and the new one doesn't. My partner is working on the same project, we both get the files from our repository and the code sense works on his machine

Xcode code sense and cmd+click to symbol doesn't work for 1 of my projects

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 00:26:54
问题 I've been using Xcode 4.3.1 since it came out now and i've worked on many different projects since. Everything has always worked fine until this 1 new project i'm working on. The code completion/code sense never finds anything or when i 'Command+Click' a variable or class normally it would jump to that but now i'm just getting 'Symbol Not Found'. If I open one of my older project while this bad one is open, the old ones still work for code sense and the new one doesn't. My partner is working