login about faq

I have downloaded the chilkat lib files & made a universal lib file. I have added it through target>build phases>link binary with libraries>+ and then selected the file.

How to import the .h files now?

When i use the example codes, I get "undeclared identifier" error. How to proceed with this?

Thanks, Augustin

asked Sep 21 '12 at 09:01

augussk's gravatar image

augussk
1112

Were you able to convert your .mht file to html using the Chilkat library?

(Nov 05 '14 at 06:00) ajitwl07

Here are the steps I followed to successfully link w/ Chilkat:

1) Create a new iOS application project. I chose Single-View Application.

2) Do nothing further at this point other than to make whatever changes are necessary in the Build Settings to run the empty app on your device. Verify that it runs on your device. You should get nothing more than a white screen that does nothing.

3) Add an "empty.cpp" source file to your project. The empty.cpp is an empty file with the name "empty.cpp".

4) I named my project "UnitTest", so in UnitTestViewController.m, add the #import statement for "CkoEmail.h"

5) Add this line in the viewDidLoad method: CkoEmail *email = [[CkoEmail alloc]init];

6) Try building the project -- you should get the unresolved symbol error.

7) Add the libchilkatIos.a library to your project. Do this by right-clicking on "Add Files to ...", then navigate to the directory where the device version of "libchilkatIos.a" is located and add it to your project.

8) Try building the project again -- all should be OK.

You've now created a project that does nothing. It simply instantiates a Chilkat object (CkoEmail) and does nothing more. But you've demonstrated that linking with libchilkatIos.a is OK.

link

answered Sep 21 '12 at 10:18

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I have done everything upto point no.7. While I tried to build I am still getting the error

----- Use of undeclared identifier 'CkoEmail'

(Sep 22 '12 at 01:59) augussk

You include the Chilkat header (.h) file using #import or #include. As a C, C++, or Objective-C developer, you should be familiar with "#include".

In the C language, the #include pre-compile directive always causes a file's contents to be inserted into the source at that point. Objective-C has the equivalent #import directive except each file is included only once per compilation unit, obviating the need for include guards.

link

answered Sep 24 '12 at 08:45

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Hi,

Thanks for the update. When I include the CkoEmail.h file it says "CkoEmail.h" file not found.

AUGUSTIN.S

(Sep 25 '12 at 03:12) augussk

I have done everything upto point no.7. While I tried to build I am still getting the error

----- Use of undeclared identifier 'CkoEmail'

Thanks & Regards, AUGUSTIN.S

link

answered Sep 24 '12 at 03:36

augussk's gravatar image

augussk
1112

Hi,

Thanks for the update. When I include the CkoEmail.h file it says "CkoEmail.h" file not found.

AUGUSTIN.S

link

answered Sep 24 '12 at 08:54

augussk's gravatar image

augussk
1112

It is assumed that if you are programming in Objective-C, you should be familiar with the "#import" preprocessor directive. (You should also be familiar with #include.)

#import is basic Objective-C programming knowledge. If you are not familiar with it, then you need to learn Objective-C a little better. It is beyond Chilkat's capacity to teach customers the fundamentals their prospective programming language: C++, Objective-C, Perl, Python, C#, VB.NET, ASP, Ruby, Java, Delphi, C, FoxPro, etc.

link

answered Sep 25 '12 at 11:35

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Dear Chilkat,

I think you have misunderstood what I have mentioned. I have followed exactly all the steps mentioned here & also I have imported the file like #import "CkoEmail.h". I am getting the error as in the screenshot below. Please let me know if I miss anything.

alt text

link

answered Sep 27 '12 at 01:34

augussk's gravatar image

augussk
1112

Even after renaming the file to ViewController.mm, I am getting the same error. Please find the screenshot below.

alt text

link

answered Sep 27 '12 at 04:57

augussk's gravatar image

augussk
1112

any update?

(Sep 29 '12 at 03:37) augussk

You need to change your 'Header Search Paths', if you are using xcode5,

Click on your project, on the center panel, click 'Build Settings', find Search Paths, then edit Header Search Paths, for example mine

/Users/keating/Desktop/AppLibraries/Chilkat-9.4.0-IOS-6.0/include
link

answered Dec 16 '13 at 22:48

keating's gravatar image

keating
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×94
×13
×6

Asked: Sep 21 '12 at 09:01

Seen: 4,999 times

Last updated: Nov 05 '14 at 06:00

powered by OSQA