additional c++ sources generating errors in Xcode

I have some source written by one of my colleagues in C++. They are stuffs for numerical analysis. I wish them to be included in my Objective-C/Cocoa project. Building seems not to be accomplished... with a kinda error message:

Undefined symbols for architecture x86_64: "_calcThomas", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm a novice in Xcode or clang. I have a lot of Xcode documentation, and can't find a related one to solve my own. How to achieve my project to work with c++?

Additionally,

  • The original c++ sources are pure c++ code composed of c++ sources and headers.
  • They are compiled perfectly in case the project is created only with c++ code template, not with Foundation template.

Thanks hopefully.

Category:c# Views:0 Time:2011-09-03
Tags: xcode

Related post

  • Office 2010: Use of =INDIRECT() in Data Validatation Source generates error when saving in Compatibility Mode 2013-11-08

    This is more of a minor irritation than anything else, but I write workbooks for others to use and I would be annoyed if they saw an error message when saving and blamed me for my poor coding. I would like to know if there is a way to prevent this er

  • Automatically adding generated source files to an xcode project 2011-02-11

    I am using an IDL which automatically generates source files for my xcode project. Does anyone know how I can automatically have the generated files added to the project? Currently I have to delete the current files from the project and add the new o

  • Header redirect and Session start() generating errors 2009-12-28

    This question already has an answer here: How to fix “Headers already sent” error in PHP 10 answers I am using following code. I get errors: Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/mc/c

  • Multiple-step OLE DB operation generated errors 2010-01-26

    I am running a simple FillSchema from a Netezza data source dss = new DataSet(); ad = new OleDbDataAdapter(cmd); ad.SelectCommand = new OleDbCommand("SELECT * FROM " + objTable.name); ad.SelectCommand.Connection = cn; ad.FillSchema(dss, SchemaType.So

  • VB6 ADODB Fails with SQL Compact: Multipe-Step operation generated errors 2010-02-16

    I am converting an old application to use SQL Compact database (it works ok with SQ Server 2005 and 2008) and using the following code gives an error when attempting to execute a simple select command: Private Const mSqlProvider As String = "Provider

  • Crystal Report :Multiple-step OLE DB operation generated errors. Check each OLE DB status 2010-04-30

    Logon failed. Details: ADO Error Code: 0x Source: Provider Description: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Native Error: --------------Solutions------------- Basically your

  • Getting 'No code was generated' error when trying to create web service proxy using SVCUTIL.EXE 2010-09-17

    When trying to create a web service proxy (WCF) using SVCUTIL.EXE (on command line or via Visual Studio) I get the below nonsensical error message. Note: There is nothing wrong with the service as it works on another machine just fine. It's a new ins

  • What is "Source Tree" in the Xcode preferences and what can I do with it? 2011-02-13

    I've been recently researching how I can manage source files in a project or multiple projects. I've read that Xcode has a built-in support for using svn, and will support git as well, both of which I found to be very useful. The one thing I couldn't

  • How to resolve MAC OS _XOPEN_SOURCE error in Xcode while compiling? 2011-06-13

    I am developing application for .Epub extension file reader.I have source code available. But while compiling the code i am getting below error : #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined I have gone through the inte

  • strange compiling errors with Xcode 4.1 on Lion 2011-08-03

    I just upgraded my Mac to Lion and then Xcode 4.1. My iPhone project which worked well with Xcode 4.0 had 401 errors in Xcode 4.1. I googled the solution and got two useful ways. changed the complier from GCC 4.2 to LLVM 2.1. changed #import "/usr/in

  • SQL Server Compact Edition 3.5 gives "Multiple-step operation generated errors" error for simple query 2011-08-05

    I'm using a SQL Server CE database via Microsoft's OLEDB 3.5 SQL CE Driver. Here's my connection string: Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\Users\me\Desktop\test1.sdf This query works fine: SELECT Thing FROM OtherThing WHERE nam

  • Stopping Compiler from generating errors in a C++ code that has legacy C code 2011-09-08

    I am porting a legacy C program to C++. However, the compiler is not happy and requires additional typecastings for C++. For example, I have this function... void foreach_element_in_patch(Patch *patch, void (*func)(), long arg1, long process_id); In

  • Cross-Project source code reference in Xcode 4 2012-01-03

    I know you can have Xcode refer to framework / static lib build targets in other projects, but if the project you want to refer to doesn't have a framework / static lib target, can you directly refer to source code from another Xcode project? I tried

  • WCESMgr.exe generate errors... 2012-06-03

    Hi, I get the error message: "WCESMgr.exe has generated errors and will be closed by windows......." when connecting the phone to my computer with USB cable. Have installed ActiveSync 4.5, and able to see it in the system tray. Please advice. -------

  • How do I disable warnings being flagged as errors in XCode 2009-07-19

    Is there a setting XCode that lets you treat warnings NOT as errors in XCode? I'm doing alot of prototyping code where I don't care if I have an unused variable for example. XCode is treating these warnings as errors and it is seriously slowing down

  • Why does compiler generate error? 2009-12-03

    Why does compiler generate error? template<class T> void ignore (const T &) {} void f() { ignore(std::endl); } Compiler VS2008 gives the following error: cannot deduce template argument as function argument is ambiguous. --------------Solut

  • ByRef vs ByVal generates errors? 2010-04-26

    ByRef vs ByVal generates errors!? I had a method that used an Object Function Foo(ByRef bar as CustomObject) as Boolean this method generated errors, because some strange .NET Runtime things changed the bar object, causing its Dispose()al. A lot of t

  • Prefix.pch error in Xcode 2010-07-01

    I get the following error in Xcode, when building project. Can someone help me fix it? #ifdef __OBJC__ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #endif with this error: Prefix.pch:6:38: error: Foundation/Foundation.h: No s

  • Why does this template have an error in Xcode but not Visual Studio? 2010-07-29

    I am getting an error in Xcode when using templates in C++. Can someone tell me what is wrong? The first version reports an error in Xcode, but not in Visual Studio. // Version 1: Error in Xcode, but not Visual Studio template<typename LengthT, ty

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.162 (s). 11 q(s)