Sign in to follow this  
Followers 0
xyz

AutoItX3

4 posts in this topic

I tried to build the example in

<AutoIt Installation Folder>\AutoItX\StandardDLL\VC6\Example\main.cpp

with lccwin32

I followed these steps.

* I copied main.cpp to main.c in a new folder

* I copied AutoItX3.lib to that same folder

* I created a Makefile where I included the AutoItX3.lib in the linker command options

(lcclnk main.obj AutoItX3.lib -o just_a_test.exe)

I got these error messages from the console after I run make:

main.obj .txt: undefined reference to '_AU3_Sleep@4'

... _AU3_Run@12'

etc.

Is there a way to convert AutoItX3.lib in a library that can be read by lcc?

Share this post


Link to post
Share on other sites



I tried to build the example in

<AutoIt Installation Folder>\AutoItX\StandardDLL\VC6\Example\main.cpp

with lccwin32

I followed these steps.

* I copied main.cpp to main.c in a new folder

* I copied AutoItX3.lib to that same folder

* I created a Makefile where I included the AutoItX3.lib in the linker command options

(lcclnk main.obj AutoItX3.lib -o just_a_test.exe)

I got these error messages from the console after I run make:

main.obj .txt: undefined reference to '_AU3_Sleep@4'

... _AU3_Run@12'

etc.

Is there a way to convert AutoItX3.lib in a library that can be read by lcc?

I'll answer to myself in case anybody's interested.

I got the solution.

There are two tools that come with the lcc distribution.

One is pedump.exe, the other one buildlib.exe.

Follow these steps:

1. copy AutoItX3.lib somewhere

2. from there run pedump.exe to create an exp file:

<path to pedump.exe (ususally c:/lcc/bin/pedump.exe)> -exp AutoItX3.lib > AutoItX3.exp

3. Delete the copy of AutoItX3.lib

4. run buildlib.exe on this file:

..../buildlib.exe AutoItX3.exp AutoItX3.lib

I tested it. It worked

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0