Sign in to follow this  
Followers 0
advis0r

cannot link with the .dll

8 posts in this topic

hi im trying to use the dll with dev-c++

i create a new project, add the header file, include it in my main.cpp - compiles/links fine (of course)

when i add the lines form the example

AU3_Sleep(1000);
    AU3_Run("notepad.exe", "", 1);
    AU3_WinWaitActive("Untitled -", "", 0);
    AU3_Send("Hello{!}", 0);

i get the following error:

[Linker error]undefined reference to `AU3_Sleep'

[Linker error] undefined reference to `AU3_Run'

[Linker error] undefined reference to `AU3_WinWaitActive'

[Linker error] undefined reference to `AU3_Send'

ld returned 1 exit status

of course under project options i told the linker to use AutoItX3.lib

the commandline looks like this:

g++.exe main.o -o "Projekt3.exe" -L"lib" AutoItX3.lib

main.o:main.cpp:(.text+0x132): undefined reference to `AU3_Sleep'

main.o:main.cpp:(.text+0x14e): undefined reference to `AU3_Run'

main.o:main.cpp:(.text+0x16a): undefined reference to `AU3_WinWaitActive'

main.o:main.cpp:(.text+0x17e): undefined reference to `AU3_Send'

collect2: ld returned 1 exit status

can anyone help me? or upload a working dev-c++ project that uses the dll?

thx in advance

Share this post


Link to post
Share on other sites



:P i have the exact same problem... BUMP

Share this post


Link to post
Share on other sites

hi all

The format of lib file isn't different between, devC++ and VC++ ??

Share this post


Link to post
Share on other sites

Why wouldn't all windows compiler linkers have a consitant format?

Share this post


Link to post
Share on other sites

There is a tool to convert ms libs to devc/mingw libs but I can't remember the name...

reimp


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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