2

I am stuck into errors when using codeTimestamp classes to checkout speed of my code. But these classes are working on any other project. I don't know what happen to this. Errors are: Undefined symbols for architecture armv7: "__Z25LogTimestampChunkInMethodPKciaa", referenced from: -[EAGLView renderFrameQCAR] in EAGLView.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

enter image description here

Thanks in advance for help, have a great day.

josh
  • 1,681
  • 4
  • 28
  • 61
  • have you added .m files in compiled resource – V-Xtreme Sep 05 '12 at 05:12
  • How to add .m file in compiled resource? – Ayaz Alavi Sep 05 '12 at 05:14
  • @AyazAlavi: When you run the application .m files are automatically added to the compiled sources. But while you adding some external file to the project it can be missed. Thats why you can add .m files manually by from selecting project icon -> build phases. – V-Xtreme Sep 05 '12 at 05:23
  • @VXtreme: I Added those files in compiled resource but still showing same errors. – josh Sep 05 '12 at 05:27
  • have you selected the copy option while adding those files into your project.check :http://stackoverflow.com/questions/6429494/undefined-symbols-for-architecture-armv7 – V-Xtreme Sep 05 '12 at 05:31
  • Yes i selected copy option while on dragging to add. – josh Sep 05 '12 at 05:33

1 Answers1

1
  • You know you have to set the -fno-obj-arc flag on that file, right?

  • Look in your EAGLView source file, and find where you use LogTimestampStartChunk. Is that the only file you added LogTimestampStartChunk to? If so then for whatever reason, the CodeTimeStamp.o is not being added to your Target. If you do have the LogTimestampStartChunk used in other files, comment it out of EAGLView and see if you can get it to build.

Ultimately, if you cannot use this macro in even one file and get the project to build, then you never included the CodeTimeStamp.o file. If you can get it to build otherwise, then its something about EAGLView.

David H
  • 40,852
  • 12
  • 92
  • 138