suxinde2009 / isgl3d

Automatically exported from code.google.com/p/isgl3d
Other
0 stars 0 forks source link

Isgl3d HelloWorld project that incudes Isgl3dPODImporter compilation error. #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download isgl3d-1.2.2.
2. Install xcode templates with "installTemplatesXcode3.sh"
3. Create project based on isgl3d template.
4. Change view, put there code that uses Isgl3dPODImporter class (just 
copy/paste sample code from PODTestView).
5. Compile project.

What is the expected output? What do you see instead?
Xcode build log shows the following output:
Build TestOne of project TestOne with configuration Debug

CompileC 
/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/TestOn
e.build/Objects-normal/i386/HelloWorldView.o Classes/HelloWorldView.m normal 
i386 objective-c com.apple.compilers.gcc.4_2
cd /Users/stimofiychuk/Documents/projects/isgl3d/TestOne
setenv LANG en_US.US-ASCII
setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/us
r/local/git/bin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x 
objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs 
-fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.
sdk -fexceptions -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 
-fobjc-abi-version=2 -fobjc-legacy-dispatch 
-D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -iquote 
/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/TestOn
e.build/TestOne-generated-files.hmap 
-I/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/Test
One.build/TestOne-own-target-headers.hmap 
-I/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/Test
One.build/TestOne-all-target-headers.hmap -iquote 
/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/TestOn
e.build/TestOne-project-headers.hmap 
-F/Users/stimofiychuk/xcode-out/xcode_3/Debug-iphonesimulator 
-I/Users/stimofiychuk/xcode-out/xcode_3/Debug-iphonesimulator/include 
-I/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/Test
One.build/DerivedSources/i386 
-I/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/Test
One.build/DerivedSources -include 
/var/folders/z6/z6JcwdwqEr0kmIn4FN5eDk+++TI/-Caches-/com.apple.Xcode.501/SharedP
recompiledHeaders/UIKit-ehhmnzrdqvpbqiarjvenzijzwdty/UIKit.h -c 
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/Classes/HelloWorldView.m 
-o 
/Users/stimofiychuk/xcode-out/xcode_3/TestOne.build/Debug-iphonesimulator/TestOn
e.build/Objects-normal/i386/HelloWorldView.o

In file included from 
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/Classes/HelloWorldView.m:1
0:
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/libs/isgl3d/importers/Isgl
3dPODImporter.h:66: error: expected specifier-qualifier-list before 'class'
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/libs/isgl3d/importers/Isgl
3dPODImporter.h:70: error: expected specifier-qualifier-list before 
'CPVRTModelPOD'
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/Classes/HelloWorldView.m: 
In function '-[HelloWorldView tick:]':
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/Classes/HelloWorldView.m:7
0: error: '_3dText' undeclared (first use in this function)
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/Classes/HelloWorldView.m:7
0: error: (Each undeclared identifier is reported only once
/Users/stimofiychuk/Documents/projects/isgl3d/TestOne/Classes/HelloWorldView.m:7
0: error: for each function it appears in.)

What version of the product are you using? On what operating system?
MacOSX 10.6.8, XCode 3.2.6.

Original issue reported on code.google.com by S.Timofi...@gmail.com on 21 Aug 2011 at 5:46

GoogleCodeExporter commented 8 years ago
Not a bug: Isgl3dPODImporter is an objective-c++ class that needs to be 
included from another objective-c++ class. Simply rename your class to 
MyClass.mm to fix the problem.

Original comment by stuart.caunt on 21 Aug 2011 at 6:23