Jump to content

cannot link with the .dll


advis0r
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 5 months later...

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 *

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...