problem linking plan

Dag Andersen danders at get2net.dk
Wed Dec 22 08:52:36 GMT 2010


Onsdag 22 december 2010 07:00:12 skrev Thorsten Zachmann:
> Hello  Dag,
> 
> I have the attached linker error when I try to build calligra. Can you
> please have a look.
Works here, of course ;)

Seems inlined functions are not handled properly.
I have  commented out inline atm.
Thorsten, could you check if it links for you now?

This is pure C code but it has // comments and uses inline so needs:
gcc -std=c99 to compile.
Does anyone know have to do this properly, so it works for gcc as well as 
other compilers?
-- 
Mvh.
Dag Andersen
> 
> Thanks,
> 
> Thorsten
> 
> Linking C shared library ../../../../../../lib/liblibrcps_plan.so
> Generating MapViewModel.moc
> [  0%] Built target kdchart_automoc
> Scanning dependencies of target ProjectTester_automoc
> Generating ScriptingWidgets.moc
> Generating moc_SpellCheckCommand.cpp
> Generating ProjectTester.moc
> CMakeFiles/librcps_plan.dir/slist.o: In function `slist_fixheight':
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:167: undefined reference to `hmax'
> CMakeFiles/librcps_plan.dir/slist.o: In function `slist_rebalance':
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:240: undefined reference to `slist_dr'
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:252: undefined reference to `slist_dr'
> CMakeFiles/librcps_plan.dir/slist.o: In function `slist_add_relative':
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:291: undefined reference to `slist_inc_count'
> CMakeFiles/librcps_plan.dir/slist.o: In function `slist_unlink':
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:407: undefined reference to `hmax'
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:426: undefined reference to `hmax'
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:440: undefined reference to `hmax'
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/s
> list.c:456: undefined reference to `slist_dec_count'
> collect2: ld returned 1 exit status
> make[2]: *** [lib/liblibrcps_plan.so] Error 1
> make[1]: ***
> [kplato/plugins/schedulers/rcps/libs/src/CMakeFiles/librcps_plan.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....




More information about the calligra-devel mailing list