Your message dated Wed, 6 Dec 2006 22:08:26 +0100 with message-id <[EMAIL PROTECTED]> and subject line Bug#401600: problem can be closed has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: boinc-dev Version: 5.4.11-3 Severity: grave Justification: renders package unusable Nothing builds with this library. For example: ----------- #include <stdio.h> #include <BOINC/boinc_api.h> int main(int argc, char *argv[]) { APP_INIT_DATA aid; return 0; } Compile with: g++ -lstdc++ -lboinc_api -lboinc test.cpp gives: /tmp/ccxYULhN.o: In function `main': test.cpp:(.text+0x1f): undefined reference to `APP_INIT_DATA::APP_INIT_DATA()' test.cpp:(.text+0x32): undefined reference to `APP_INIT_DATA::~APP_INIT_DATA()' collect2: ld returned 1 exit status Other example: ------------- #include <BOINC/lib/gui_rpc_client.h> int main(int argc, char *argv[]) { RPC_CLIENT test; return 0; } Compile with: g++ -I /usr/include/BOINC/ -lstdc++ -lboinc_api -lboinc rpctest.cpp gives: /tmp/ccfemaKV.o: In function `main': rpctest.cpp:(.text+0x19): undefined reference to `RPC_CLIENT::RPC_CLIENT()' rpctest.cpp:(.text+0x29): undefined reference to `RPC_CLIENT::~RPC_CLIENT()' collect2: ld returned 1 exit status -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17.7 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages boinc-dev depends on: ii libc6-dev [libc-dev] 2.3.6.ds1-6 GNU C Library: Development Librari ii libmysqlclient15-dev 5.0.24a-9 mysql database development files ii libssl-dev 0.9.8c-3 SSL development libraries, header ii libstdc++5-3.3-dev [libstdc+ 1:3.3.6-13 The GNU Standard C++ Library v3 (d ii libstdc++6-4.0-dev [libstdc+ 4.0.3-7 The GNU Standard C++ Library v3 (d ii libstdc++6-4.1-dev [libstdc+ 4.1.1-19 The GNU Standard C++ Library v3 (d ii libstdc++6-dev [libstdc++-de 3.4.6-4 The GNU Standard C++ Library v3 (d boinc-dev recommends no packages. -- no debconf information
--- End Message ---
--- Begin Message ---On Wednesday 06 December 2006 20:08, Folkert van Heusden wrote: > The problem can be closed. Ok, closing it then. > The solutions was: > do NOT do: > g++ -lboinc file.cpp > but to > g++ file.cpp -lboinc > instead (which puzzles me but hey it works). Here is what GCC's man page says about -l: -llibrary -l library Search the library named library when linking. (The second alter‐ native with the library as a separate argument is only for POSIX compliance and is not recommended.) It makes a difference where in the command you write this option; the linker searches and processes libraries and object files in the order they are specified. Thus, foo.o -lz bar.o searches library z after file foo.o but before bar.o. If bar.o refers to functions in z, those functions may not be loaded. The linker searches a standard list of directories for the library, which is actually a file named liblibrary.a. The linker then uses this file as if it had been specified precisely by name. The directories searched include several standard system directo‐ ries plus any that you specify with -L. Normally the files found this way are library files---archive files whose members are object files. The linker handles an archive file by scanning through it for members which define symbols that have so far been referenced but not defined. But if the file that is found is an ordinary object file, it is linked in the usual fash‐ ion. The only difference between using an -l option and specifying a file name is that -l surrounds library with lib and .a and searches several directories.
pgpBgLlD1Laid.pgp
Description: PGP signature
--- End Message ---

