Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Reini

macrumors newbie
Original poster
Feb 19, 2011
2
0
I want to use some existing C-modules in my new Xcode project. I have compiled them in Xcode with the File-type "Sourcecode.c". After a small work with Macros in this C-File no error are detected anymore and only the "Warning:no rule to process this file ..." is left.
After that the Objective-C modules was compiled without any warning, but then the linker did not find the Functions in the C-Module. See in the screenshot.

For me it looks like that the C-precopmiler is working but after that the object file is not created.

Please help me!
 

Attachments

  • Error.png
    Error.png
    64.5 KB · Views: 523
I just select "add to project" from my Xcode menu for new .c and .h files, check add to target, and the then they compile and link when I hit Build for my iPhone target. What are you doing different?
 
I send you here my project testc

I also "add to project" my C files. I change the filetype to sourcecode.c per default it was sourcecode.c.c. But then I got the this 2 warnings.

Here I send my test project.

What is the different between sourcecode.c and sourcecode.c.c?

I just select "add to project" from my Xcode menu for new .c and .h files, check add to target, and the then they compile and link when I hit Build for my iPhone target. What are you doing different?
 

Attachments

  • testc.zip
    171.7 KB · Views: 116
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.