Is there a way for me to use an obj-C class with my C++ program? If so, what special parameters do I have to specify during the compilation phase, and if I needed, changes to my source code files?:-/
lil_panda 0 Light Poster
Recommended Answers
Jump to Postthere is no such thing as an "obj-c" class. C language knows nothing about classes. Maybe you mean a structure object declared in a c translation unit (*.c program) ?
// *.cpp file extern C int myint;
if you have a large group of objects
Jump to PostWhat I am guessing is that you dont have the source of of the .obj(or .o) file.
Don't worry. If you know what all prototypes where there in the source file, you can create a header file which have all the prototypes and then compile it. It will compile easily. …
All 6 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ArkM 1,090 Postaholic
siddhant3s 1,429 Practically a Posting Shark
ArkM 1,090 Postaholic
siddhant3s 1,429 Practically a Posting Shark
ArkM 1,090 Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.