Code Monkey home page Code Monkey logo

Comments (10)

coryalder avatar coryalder commented on August 30, 2024 1

I think the solution to this is to

a) only include the C++ headers (RingBuffer.h, AudioFileWriter.h, AudioFileReader.h) from within .mm files. This means not from the .h files associated with your .mm files.

or b) set the compiler to default to Objective-C++. Go to your project's build settings, and find "Compile Sources As". It's probably set to "According to file type", change to it "Objective-C++".

Setting the compiler to default to Objective-C++

from novocaine.

alexbw avatar alexbw commented on August 30, 2024

Baskaran, did you ever get this working, or did coryalder's tip help?

from novocaine.

 avatar commented on August 30, 2024

Hi, just started with Novocaine and had the class error all over, the only thing you will have to do to make this disappear is to rename all source files which include any of Novocaines headers directly or indirectly to the file ending .mm.

This will help. You still need to rename those files if you do not include RingBuffer, because AudioFileReader includes RingBuffer.h.

Hope this helps
best sn-e5

from novocaine.

 avatar commented on August 30, 2024

i suppose, alexbw, you might close this issue. see the above comments.

best

from novocaine.

casbreuk avatar casbreuk commented on August 30, 2024

Also need to include AudioToolbox framework and CoreAudio framework on iOS.

from novocaine.

GilesHammond avatar GilesHammond commented on August 30, 2024

You'll also need to mark all the Novocaine files "-fno-objc-arc" in Build Phases-Compile Sources if you are using Novocaine in an ARC enabled project.

from novocaine.

pablobrady avatar pablobrady commented on August 30, 2024

Sadly, still seeing linker issues... (new project / iOS 6.1 / non-arc / non-storyboard)

-- I also needed to REMOVE the framework "AudioUnit.h" (as discovered in this post #16 ).

-- And I changed the OutputBlock and InputBlock in Novocaine.h from "retain" to "copy" (as suggested elsewhere). This quiets the 2 warnings.

But the issues still persist...
"Undefined symbols for architecture armv7" - class Novocaine, referenced from ViewController.o (a new project, but I've tried to copy straight from the code and settings from the Novocaine sample project.

I'm kindof at a loss. Is this an iOS 6.x issue?

from novocaine.

ndonald2 avatar ndonald2 commented on August 30, 2024

@PeddlePower Try going to Project Settings -> Targets -> YourAppName -> Build Phases -> Compile Sources and make sure that Novocaine.m is listed there. It sounds like maybe you added the files to the project but not to your build target.

Another way to check is to select the Novocaine.m file in the project navigator, go to the inspector (far right panel in XCode) and make sure that your build target is checked off under "Target Membership"

from novocaine.

pablobrady avatar pablobrady commented on August 30, 2024

@ndonald2 OMG. You're right. Thank you!

That was the last little bit to get it running.

P.S. I must have been suffering from "compiler-fatigue".

from novocaine.

alexbw avatar alexbw commented on August 30, 2024

Seems resolved. Closing.

from novocaine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.