Author Topic: undefined reference to ... when compiling ToDo plugin  (Read 2437 times)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
undefined reference to ... when compiling ToDo plugin
« on: December 08, 2014, 08:18:30 pm »
I'm getting
Code
.objs\plugins\todo\todolistview.o:todolistview.cpp:(.rdata$_ZTV12ToDoListView[__ZTV12ToDoListView]+0x80)||undefined reference to `ListCtrlLogger::AutoFitColumns(int)'
||error: ld returned 1 exit status|
when trying to compile the ToDo plugin. I haven't changed anything regarding the todo plugin or logger sources. Any idea why am I getting this?

Build log:
Code
g++.exe -shared   -Wl,--dll -Lbase\tinyxml -LC:\GNU\codeblocks -Ldevel .objs\plugins\todo\addtododlg.o .objs\plugins\todo\asktypedlg.o .objs\plugins\todo\todolist.o .objs\plugins\todo\todolistview.o .objs\plugins\todo\todosettingsdlg.o  -o devel\share\CodeBlocks\plugins\todo.dll -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined -mthreads  -lcodeblocks -lwxmsw28u_gcc_cb
.objs\plugins\todo\todolistview.o:todolistview.cpp:(.rdata$_ZTV12ToDoListView[__ZTV12ToDoListView]+0x80): undefined reference to `ListCtrlLogger::AutoFitColumns(int)'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 2 second(s))
2 error(s), 0 warning(s) (0 minute(s), 2 second(s))

Win7 x64, cb rev 10050
« Last Edit: December 08, 2014, 08:20:14 pm by scarphin »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: undefined reference to ... when compiling ToDo plugin
« Reply #1 on: December 08, 2014, 08:24:13 pm »
Probably you have an old version of libcodeblocks.dll lurking around.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: undefined reference to ... when compiling ToDo plugin
« Reply #2 on: December 08, 2014, 11:13:16 pm »
Yeah that was it and now I'm getting an empty list of languages in syntax highlighting. I think I messed up something.