Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pascal/Delphi and XCode



Hi All,

I have just started working on a new project. I have to take the core module from another project (a heavy image processing module) and add a GUI and some extra features, but the core functions are the same. The module however is written in Pascal/Delphi, so this leaves me with two options:

1. Convert the Source Code to C/C++.
2. Try to Compile the Delphi/Pascal code under MacOS X and include it in my XCode C/C++ project.


Since I don't really want to have to re-write the code if I don't have to, I decided to investigate option 2 and was quite pleased to find a Free Pascal Compiler for Intel/MacOS X. I have managed to compile the module into a Dynamic Library. I then included it into my XCode Project and it seemed to accept the file ok, however when I build the project I get undefined errors on the Link phase.

I'm now not sure if the problem lies in the Library file created by Free Pascal or if I have to do something extra in XCode in order to link my C code to the Dynamic Library.

Any advice or suggestion would be greatly appreciated.

Thanks a lot and All the Best
Dave


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Help Regarding Xcode 2.4 (From: "Lijith P" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.