- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在编码方面是一个安静的新手,所以答案可能很简单。我正在 Xcode 上开始一个新的 C++ 项目,我想从另一个任务中导入一个外部库:http://www.stanford.edu/class/cs106b/assignments/assn-0-narcissism-mac.zip
我想在新项目中使用 libcs106.a 库。当我手动将文件导入我的新项目时,我开始 #include 库(如 simpio.h),我得到了 113 个错误的长列表:
Ld ./assn-0-narcissism.app/Contents/MacOS/assn-0-narcissism normal i386
cd "/Users/Dropbox/perso/programming/cs106b/assignments/assn-0-narcissism-mac 2"
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L. -Lcs106 "-L/Users/Dropbox/perso/programming/cs106b/assignments/assn-0-narcissism-mac 2/cs106" -F. -filelist "/Users/Dropbox/perso/programming/cs106b/assignments/assn-0-narcissism-mac 2/build/narcissism.build/Debug/assn-0-narcissism.build/Objects-normal/i386/assn-0-narcissism.LinkFileList" -mmacosx-version-min=10.5 -lcs106 -o ./assn-0-narcissism.app/Contents/MacOS/assn-0-narcissism
Undefined symbols:
".objc_class_name_NSString", referenced from:
literal-pointer@__OBJC@__cls_refs@NSString in libcs106.a(mainwrapper.o)
literal-pointer@__OBJC@__cls_refs@NSString in libcs106.a(ConsoleTextView.o)
"_FindWindow", referenced from:
MouseButtonIsDown() in libcs106.a(graphics.o)
MouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libcs106.a(graphics.o)
"_ScreenRes", referenced from:
GetFullScreenWidth() in libcs106.a(graphics.o)
GetFullScreenHeight() in libcs106.a(graphics.o)
GetXResolution() in libcs106.a(graphics.o)
GetYResolution() in libcs106.a(graphics.o)
InitGraphics() in libcs106.a(graphics.o)
".objc_class_name_NSScreen", referenced from:
literal-pointer@__OBJC@__cls_refs@NSScreen in libcs106.a(ConsoleTextView.o)
"_DisposeMovie", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
"_FrameArc", referenced from:
DisplayArc(double, double, double, double, double, double)in libcs106.a(graphics.o)
".objc_class_name_NSThread", referenced from:
literal-pointer@__OBJC@__cls_refs@NSThread in libcs106.a(mainwrapper.o)
"_DrawText", referenced from:
DisplayText(double, double, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_OffsetRect", referenced from:
DrawNamedPicture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
DrawNamedPicture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
DrawNamedPicture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_CopyCStringToPascal", referenced from:
GetFontNumber(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_GetWindowEventTarget", referenced from:
CreateGraphicsWindow() in libcs106.a(graphics.o)
"_MPEnterCriticalRegion", referenced from:
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
BeginDrawing() in libcs106.a(graphics.o)
"_CFBundleCopyBundleURL", referenced from:
ChdirToAppDirectory() in libcs106.a(mainwrapper.o)
"_SetWindowTitleWithCFString", referenced from:
UpdateTitle(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_CloseMovieFile", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
".objc_class_name_NSMenu", referenced from:
literal-pointer@__OBJC@__cls_refs@NSMenu in libcs106.a(mainwrapper.o)
"_InstallEventLoopTimer", referenced from:
SetWindowTitle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
CreateGraphicsWindow() in libcs106.a(graphics.o)
InitGraphics() in libcs106.a(graphics.o)
"_CFURLCreateCopyDeletingLastPathComponent", referenced from:
ChdirToAppDirectory() in libcs106.a(mainwrapper.o)
"_NSApp", referenced from:
_NSApp$non_lazy_ptr in libcs106.a(mainwrapper.o)
_NSApp$non_lazy_ptr in libcs106.a(ConsoleTextView.o)
(maybe you meant: _NSApp$non_lazy_ptr)
"_EnterMovies", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
"_GetMouse", referenced from:
MouseButtonIsDown() in libcs106.a(graphics.o)
GetMouseY() in libcs106.a(graphics.o)
GetMouseX() in libcs106.a(graphics.o)
"_InstallEventHandler", referenced from:
CreateGraphicsWindow() in libcs106.a(graphics.o)
"_QDGetPictureBounds", referenced from:
GetPictureHeight(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
GetPictureWidth(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
DrawNamedPicture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_NewRgn", referenced from:
EndFilledRegion() in libcs106.a(graphics.o)
".objc_class_name_NSWindow", referenced from:
literal-pointer@__OBJC@__cls_refs@NSWindow in libcs106.a(ConsoleTextView.o)
".objc_class_name_NSApplication", referenced from:
literal-pointer@__OBJC@__cls_refs@NSApplication in libcs106.a(mainwrapper.o)
"_GetPort", referenced from:
GetMouseY() in libcs106.a(graphics.o)
GetMouseX() in libcs106.a(graphics.o)
"_ShowWindow", referenced from:
ShowWindows(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_GetGWorldPixMap", referenced from:
BeginDrawing() in libcs106.a(graphics.o)
EndDrawing() in libcs106.a(graphics.o)
"_GetPortBitMapForCopyBits", referenced from:
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_CFURLGetFileSystemRepresentation", referenced from:
ChdirToAppDirectory() in libcs106.a(mainwrapper.o)
"_NewGWorld", referenced from:
CreateGraphicsWindow() in libcs106.a(graphics.o)
"_objc_msgSend_stret", referenced from:
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView createConsoleInWindow] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView createConsoleInWindow] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
"_CFBundleGetInfoDictionary", referenced from:
CreateMenus() in libcs106.a(mainwrapper.o)
"_objc_msgSend", referenced from:
+[Glue applicationDidFinishLaunching:] in libcs106.a(mainwrapper.o)
+[Glue studentMain] in libcs106.a(mainwrapper.o)
+[Glue studentMain] in libcs106.a(mainwrapper.o)
+[Glue studentMain] in libcs106.a(mainwrapper.o)
+[Glue studentMain] in libcs106.a(mainwrapper.o)
+[Glue showAbout:] in libcs106.a(mainwrapper.o)
+[Glue showAbout:] in libcs106.a(mainwrapper.o)
+[Glue showAbout:] in libcs106.a(mainwrapper.o)
CocoaConsoleResize(int, int, int, int)in libcs106.a(mainwrapper.o)
CocoaConsoleResize(int, int, int, int)in libcs106.a(mainwrapper.o)
TerminateApp() in libcs106.a(mainwrapper.o)
SetConsoleSize(int, int, int, bool)in libcs106.a(mainwrapper.o)
patched_read(void*, char*, int)in libcs106.a(mainwrapper.o)
patched_read(void*, char*, int)in libcs106.a(mainwrapper.o)
ConnectConsoleToStdio(ConsoleTextView*) in libcs106.a(mainwrapper.o)
CreateMenuWithItems(NSString*, menuitem*, int)in libcs106.a(mainwrapper.o)
CreateMenuWithItems(NSString*, menuitem*, int)in libcs106.a(mainwrapper.o)
CreateMenuWithItems(NSString*, menuitem*, int)in libcs106.a(mainwrapper.o)
CreateMenus() in libcs106.a(mainwrapper.o)
CreateMenus() in libcs106.a(mainwrapper.o)
CustomApplicationMain(int, char**)in libcs106.a(mainwrapper.o)
CustomApplicationMain(int, char**)in libcs106.a(mainwrapper.o)
CustomApplicationMain(int, char**)in libcs106.a(mainwrapper.o)
CustomApplicationMain(int, char**)in libcs106.a(mainwrapper.o)
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView createConsoleInWindow] in libcs106.a(ConsoleTextView.o)
+[ConsoleTextView createConsoleInWindow] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setFont:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setFont:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setPointSize:numRows:numCols:center:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView registerForNotifications] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView registerForNotifications] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView registerForNotifications] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView registerForNotifications] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView registerForNotifications] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView registerForNotifications] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setInput:output:error:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView gotDataOnOut:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView gotDataOnOut:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView gotDataOnOut:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView gotDataOnOut:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView appendString:withAttributes:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView appendString:withAttributes:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView appendString:withAttributes:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView appendString:withAttributes:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView appendString:withAttributes:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView appendString:withAttributes:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView rangeForUserTextChange] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView rangeForUserTextChange] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView rangeForUserTextChange] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView commit] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView commit] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView keyDown:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView keyDown:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView studentProgramCompleted] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView studentProgramCompleted] in libcs106.a(ConsoleTextView.o)
"_LockPixels", referenced from:
BeginDrawing() in libcs106.a(graphics.o)
"_GetFontInfo", referenced from:
SetTextBB(Rect*, double, double, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
GetFontHeight() in libcs106.a(graphics.o)
GetFontDescent() in libcs106.a(graphics.o)
GetFontAscent() in libcs106.a(graphics.o)
"_LineTo", referenced from:
RenderArc(double, double, double, double, double, double)in libcs106.a(graphics.o)
DisplayLine(double, double, double, double)in libcs106.a(graphics.o)
".objc_class_name_NSData", referenced from:
literal-pointer@__OBJC@__cls_refs@NSData in libcs106.a(ConsoleTextView.o)
"_DrawPicture", referenced from:
DrawNamedPicture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_NewEventHandlerUPP", referenced from:
CreateGraphicsWindow() in libcs106.a(graphics.o)
"_NSFileHandleDataAvailableNotification", referenced from:
_NSFileHandleDataAvailableNotification$non_lazy_ptr in libcs106.a(ConsoleTextView.o)
(maybe you meant: _NSFileHandleDataAvailableNotification$non_lazy_ptr)
"_GetEventKind", referenced from:
MouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libcs106.a(graphics.o
"_CloseRgn", referenced from:
EndFilledRegion() in libcs106.a(graphics.o)
"_RemoveEventLoopTimer", referenced from:
UpdateTitle(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
ShowWindows(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_MoveTo", referenced from:
DisplayText(double, double, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
RenderArc(double, double, double, double, double, double)in libcs106.a(graphics.o)
DisplayLine(double, double, double, double)in libcs106.a(graphics.o)
"_RGBForeColor", referenced from:
PrepareToDraw() in libcs106.a(graphics.o)
"_OpenMovieFile", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
"_IsMovieDone", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
".objc_class_name_NSMenuItem", referenced from:
literal-pointer@__OBJC@__cls_refs@NSMenuItem in libcs106.a(mainwrapper.o)
"_MPSignalSemaphore", referenced from:
MouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libcs106.a(graphics.o)
MouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libcs106.a(graphics.o)
"_GetWindowPort", referenced from:
GetFullScreenWidth() in libcs106.a(graphics.o)
GetFullScreenHeight() in libcs106.a(graphics.o)
GetMouseY() in libcs106.a(graphics.o)
GetMouseX() in libcs106.a(graphics.o)
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_CFRelease", referenced from:
ChdirToAppDirectory() in libcs106.a(mainwrapper.o)
ChdirToAppDirectory() in libcs106.a(mainwrapper.o)
UpdateTitle(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_MoviesTask", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
"_EraseRect", referenced from:
CreateGraphicsWindow() in libcs106.a(graphics.o)
EraseWindow() in libcs106.a(graphics.o)
"_CFBundleGetMainBundle", referenced from:
ChdirToAppDirectory() in libcs106.a(mainwrapper.o)
CreateMenus() in libcs106.a(mainwrapper.o)
"_NewMovieFromFile", referenced from:
PlayNamedSound(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(sound.o)
"_Gestalt", referenced from:
IsQuickTimeInstalled() in libcs106.a(sound.o)
".objc_class_name_NSScrollView", referenced from:
literal-pointer@__OBJC@__cls_refs@NSScrollView in libcs106.a(ConsoleTextView.o)
"___CFConstantStringClassReference", referenced from:
cfstring=Version in libcs106.a(mainwrapper.o)
cfstring=Info: CS106 library built on %s in libcs106.a(mainwrapper.o)
cfstring= in libcs106.a(mainwrapper.o)
cfstring=About in libcs106.a(mainwrapper.o)
cfstring=Hide in libcs106.a(mainwrapper.o)
cfstring=h in libcs106.a(mainwrapper.o)
cfstring=Edit in libcs106.a(mainwrapper.o)
cfstring=M in libcs106.a(ConsoleTextView.o)
cfstring=Console Window in libcs106.a(ConsoleTextView.o)
"_FrameOval", referenced from:
RenderArc(double, double, double, double, double, double)in libcs106.a(graphics.o)
".objc_class_name_NSBundle", referenced from:
literal-pointer@__OBJC@__cls_refs@NSBundle in libcs106.a(mainwrapper.o)
.objc_class_name_NSBundleWithoutSpuriousErrorLog in libcs106.a(mainwrapper.o)
(maybe you meant: .objc_class_name_NSBundleWithoutSpuriousErrorLog)
".objc_class_name_NSFileHandle", referenced from:
literal-pointer@__OBJC@__cls_refs@NSFileHandle in libcs106.a(ConsoleTextView.o)
"_GetGraphicsImporterForFile", referenced from:
GetPictHandle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_MPExitCriticalRegion", referenced from:
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
EndDrawing() in libcs106.a(graphics.o)
"_GraphicsImportGetAsPicture", referenced from:
GetPictHandle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_NSFontAttributeName", referenced from:
_NSFontAttributeName$non_lazy_ptr in libcs106.a(ConsoleTextView.o)
(maybe you meant: _NSFontAttributeName$non_lazy_ptr)
".objc_class_name_NSColor", referenced from:
literal-pointer@__OBJC@__cls_refs@NSColor in libcs106.a(ConsoleTextView.o)
".objc_class_name_NSTextView", referenced from:
.objc_class_name_ConsoleTextView in libcs106.a(ConsoleTextView.o)
"_TextFace", referenced from:
PrepareToDrawText() in libcs106.a(graphics.o)
"_FSPathMakeRef", referenced from:
GetFSSpec(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, FSSpec*)in libcs106.a(sound.o)
".objc_class_name_NSNotificationCenter", referenced from:
literal-pointer@__OBJC@__cls_refs@NSNotificationCenter in libcs106.a(ConsoleTextView.o)
"_PenMode", referenced from:
PrepareToDraw() in libcs106.a(graphics.o)
".objc_class_name_NSDictionary", referenced from:
literal-pointer@__OBJC@__cls_refs@NSDictionary in libcs106.a(mainwrapper.o)
".objc_class_name_NSAttributedString", referenced from:
literal-pointer@__OBJC@__cls_refs@NSAttributedString in libcs106.a(ConsoleTextView.o)
"_UnlockPixels", referenced from:
EndDrawing() in libcs106.a(graphics.o)
"_DisposeRgn", referenced from:
EndFilledRegion() in libcs106.a(graphics.o)
"_objc_msgSend_fpret", referenced from:
+[ConsoleTextView contentSizeForPointSize:numRows:numCols:] in libcs106.a(ConsoleTextView.o)
"_SetGWorld", referenced from:
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
CreateGraphicsWindow() in libcs106.a(graphics.o)
BeginDrawing() in libcs106.a(graphics.o)
"_SetRect", referenced from:
SetRectFromSize(Rect*, int, int, int, int)in libcs106.a(graphics.o)
SetTextBB(Rect*, double, double, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
SetArcBB(Rect*, double, double, double, double, double, double)in libcs106.a(graphics.o)
SetArcBB(Rect*, double, double, double, double, double, double)in libcs106.a(graphics.o)
DisplayArc(double, double, double, double, double, double)in libcs106.a(graphics.o)
RenderArc(double, double, double, double, double, double)in libcs106.a(graphics.o)
DisplayLine(double, double, double, double)in libcs106.a(graphics.o)
"_NewEventLoopTimerUPP", referenced from:
SetWindowTitle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
CreateGraphicsWindow() in libcs106.a(graphics.o)
InitGraphics() in libcs106.a(graphics.o)
"_FillRgn", referenced from:
EndFilledRegion() in libcs106.a(graphics.o)
".objc_class_name_NSFont", referenced from:
literal-pointer@__OBJC@__cls_refs@NSFont in libcs106.a(ConsoleTextView.o)
".objc_class_name_NSMutableDictionary", referenced from:
literal-pointer@__OBJC@__cls_refs@NSMutableDictionary in libcs106.a(ConsoleTextView.o)
"_Button", referenced from:
MouseButtonIsDown() in libcs106.a(graphics.o)
"_SetPort", referenced from:
GetMouseY() in libcs106.a(graphics.o)
GetMouseY() in libcs106.a(graphics.o)
GetMouseX() in libcs106.a(graphics.o)
GetMouseX() in libcs106.a(graphics.o)
"_MPWaitOnSemaphore", referenced from:
Pause(double)in libcs106.a(graphics.o)
WaitForMouseUp() in libcs106.a(graphics.o)
WaitForMouseDown() in libcs106.a(graphics.o)
CreateGraphicsWindow() in libcs106.a(graphics.o)
"_MPCreateSemaphore", referenced from:
InitGraphics() in libcs106.a(graphics.o)
InitGraphics() in libcs106.a(graphics.o)
InitGraphics() in libcs106.a(graphics.o)
"_TextWidth", referenced from:
SetTextBB(Rect*, double, double, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_objc_msgSendSuper", referenced from:
+[NSBundleWithoutSpuriousErrorLog aloadNibNamed:owner:] in libcs106.a(mainwrapper.o)
-[ConsoleTextView initWithFrame:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView dealloc] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView setFont:] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView rangeForUserTextChange] in libcs106.a(ConsoleTextView.o)
-[ConsoleTextView keyDown:] in libcs106.a(ConsoleTextView.o)
"_CopyBits", referenced from:
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
"_CloseComponent", referenced from:
GetPictHandle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
".objc_class_name_NSObject", referenced from:
.objc_class_name_Glue in libcs106.a(mainwrapper.o)
"_CreateNewWindow", referenced from:
CreateGraphicsWindow() in libcs106.a(graphics.o)
"_TextSize", referenced from:
PrepareToDrawText() in libcs106.a(graphics.o)
"_TextFont", referenced from:
PrepareToDrawText() in libcs106.a(graphics.o)
"_KillPicture", referenced from:
GetPictureHeight(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
GetPictureWidth(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
DrawNamedPicture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
"_GetFNum", referenced from:
GetFontNumber(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
".objc_class_name_NSAutoreleasePool", referenced from:
literal-pointer@__OBJC@__cls_refs@NSAutoreleasePool in libcs106.a(mainwrapper.o)
"_GetMainEventLoop", referenced from:
SetWindowTitle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in libcs106.a(graphics.o)
CreateGraphicsWindow() in libcs106.a(graphics.o)
InitGraphics() in libcs106.a(graphics.o)
"_FSGetCatalogInfo", referenced from:
GetFSSpec(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, FSSpec*)in libcs106.a(sound.o)
"_ConvertEventRefToEventRecord", referenced from:
MouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libcs106.a(graphics.o)
"_SetEventLoopTimerNextFireTime", referenced from:
UpdateDisplay() in libcs106.a(graphics.o)
"_NSForegroundColorAttributeName", referenced from:
_NSForegroundColorAttributeName$non_lazy_ptr in libcs106.a(ConsoleTextView.o)
(maybe you meant: _NSForegroundColorAttributeName$non_lazy_ptr)
"_GetPortBounds", referenced from:
GetFullScreenWidth() in libcs106.a(graphics.o)
GetFullScreenHeight() in libcs106.a(graphics.o)
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
CopyBitsOnscreen(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
CreateGraphicsWindow() in libcs106.a(graphics.o)
EraseWindow() in libcs106.a(graphics.o)
"_NSBeep", referenced from:
-[ConsoleTextView keyDown:] in libcs106.a(ConsoleTextView.o)
"_CFStringCreateWithCString", referenced from:
UpdateTitle(__EventLoopTimer*, void*) in libcs106.a(graphics.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
有人可以告诉我我的程序有什么问题吗?
谢谢!J
最佳答案
编译器提示找不到任何地方的类和方法。它们对我来说听起来都很熟悉,所以我相信您需要添加对几个 Mac OS X frameworks 的引用。在你的 Xcode 项目中:
Carbon.framework
Cocoa.framework
QuickTime.framework
您可以通过右键单击项目资源管理器并使用添加/现有框架...命令来执行此操作。
您可能更喜欢使用 assignment 0 source code for Mac作为起点,因为包含的 Xcode 项目已经配置好,链接到类(class)实用程序库并引用所有需要的框架。
关于c++ - 在 xcode 中导入外部库 - C++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4446067/
我需要将文本放在 中在一个 Div 中,在另一个 Div 中,在另一个 Div 中。所以这是它的样子: #document Change PIN
奇怪的事情发生了。 我有一个基本的 html 代码。 html,头部, body 。(因为我收到了一些反对票,这里是完整的代码) 这是我的CSS: html { backgroun
我正在尝试将 Assets 中的一组图像加载到 UICollectionview 中存在的 ImageView 中,但每当我运行应用程序时它都会显示错误。而且也没有显示图像。 我在ViewDidLoa
我需要根据带参数的 perl 脚本的输出更改一些环境变量。在 tcsh 中,我可以使用别名命令来评估 perl 脚本的输出。 tcsh: alias setsdk 'eval `/localhome/
我使用 Windows 身份验证创建了一个新的 Blazor(服务器端)应用程序,并使用 IIS Express 运行它。它将显示一条消息“Hello Domain\User!”来自右上方的以下 Ra
这是我的方法 void login(Event event);我想知道 Kotlin 中应该如何 最佳答案 在 Kotlin 中通配符运算符是 * 。它指示编译器它是未知的,但一旦知道,就不会有其他类
看下面的代码 for story in book if story.title.length < 140 - var story
我正在尝试用 C 语言学习字符串处理。我写了一个程序,它存储了一些音乐轨道,并帮助用户检查他/她想到的歌曲是否存在于存储的轨道中。这是通过要求用户输入一串字符来完成的。然后程序使用 strstr()
我正在学习 sscanf 并遇到如下格式字符串: sscanf("%[^:]:%[^*=]%*[*=]%n",a,b,&c); 我理解 %[^:] 部分意味着扫描直到遇到 ':' 并将其分配给 a。:
def char_check(x,y): if (str(x) in y or x.find(y) > -1) or (str(y) in x or y.find(x) > -1):
我有一种情况,我想将文本文件中的现有行包含到一个新 block 中。 line 1 line 2 line in block line 3 line 4 应该变成 line 1 line 2 line
我有一个新项目,我正在尝试设置 Django 调试工具栏。首先,我尝试了快速设置,它只涉及将 'debug_toolbar' 添加到我的已安装应用程序列表中。有了这个,当我转到我的根 URL 时,调试
在 Matlab 中,如果我有一个函数 f,例如签名是 f(a,b,c),我可以创建一个只有一个变量 b 的函数,它将使用固定的 a=a1 和 c=c1 调用 f: g = @(b) f(a1, b,
我不明白为什么 ForEach 中的元素之间有多余的垂直间距在 VStack 里面在 ScrollView 里面使用 GeometryReader 时渲染自定义水平分隔线。 Scrol
我想知道,是否有关于何时使用 session 和 cookie 的指南或最佳实践? 什么应该和什么不应该存储在其中?谢谢! 最佳答案 这些文档很好地了解了 session cookie 的安全问题以及
我在 scipy/numpy 中有一个 Nx3 矩阵,我想用它制作一个 3 维条形图,其中 X 轴和 Y 轴由矩阵的第一列和第二列的值、高度确定每个条形的 是矩阵中的第三列,条形的数量由 N 确定。
假设我用两种不同的方式初始化信号量 sem_init(&randomsem,0,1) sem_init(&randomsem,0,0) 现在, sem_wait(&randomsem) 在这两种情况下
我怀疑该值如何存储在“WORD”中,因为 PStr 包含实际输出。? 既然Pstr中存储的是小写到大写的字母,那么在printf中如何将其给出为“WORD”。有人可以吗?解释一下? #include
我有一个 3x3 数组: var my_array = [[0,1,2], [3,4,5], [6,7,8]]; 并想获得它的第一个 2
我意识到您可以使用如下方式轻松检查焦点: var hasFocus = true; $(window).blur(function(){ hasFocus = false; }); $(win
我是一名优秀的程序员,十分优秀!