On 2009-12-30 00:10, Johnny Halfmoon wrote:
> after being slapped in the face by the error, try manually entering
> the following:
>
> cd src x86_64-w64-mingw32-gcc -std=gnu99 -g -O2
> -D__USE_MINGW_ANSI_STDIO -I/home/freddie/Pobrane/ftd2xx -Wall
> -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter
> -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o
> openocd.exe ./.libs/libopenocd.a main.o
> -L/home/freddie/Pobrane/ftd2xx/amd64 -lws2_32 -lusb -lftd2xx
>
> This little trick moves the ./.libs/libopenocd.a from the rear of the
> command to just after -o<bla>  . Do you get any errors then? It works
> on my x64 Ubuntu box, though I link against a shared openocd lib, and
> I'm guessing it'll work on mingboxen too. A quick guess is that
> configure.in needs to be fixed.

Unfortunately it doesn't solve the problem.

When I do as you suggested I get just:

> main.o: In function `main':
> /home/freddie/openocd/build-win64-ftd2xx/src/../../src/main.c:38: undefined 
> reference to `_openocd_main'
> collect2: ld returned 1 exit statu

Moving elements around doesn't change the original error, so I'm 
guessing that it's a case of "the latter depending on the earlier 
depending on the latter"...

Anyone has some ideas?

4\/3!!
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to