[Bug 1206236] Re: when I try to compile and use the dlopen function I get an error

Adam Conrad adconrad at 0c3.net
Sun Mar 9 18:32:49 UTC 2014


You need to link with -ldl to get dlopen() and friends.

** Changed in: eglibc (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1206236

Title:
  when I try to compile and use the dlopen function I get an error

Status in “eglibc” package in Ubuntu:
  Invalid

Bug description:
  g++ -m64 -Wl,-O1 -o SDR_Control_launch SDR_launch.o    -L/usr/lib/x86_64-linux-gnu -lQtCore -lpthread 
  SDR_launch.o: In function `main':
  SDR_launch.cpp:(.text.startup+0x11): undefined reference to `dlopen'
  SDR_launch.cpp:(.text.startup+0x26): undefined reference to `dlsym'
  SDR_launch.cpp:(.text.startup+0x2e): undefined reference to `dlerror'
  SDR_launch.cpp:(.text.startup+0x41): undefined reference to `dlclose'
  SDR_launch.cpp:(.text.startup+0x4f): undefined reference to `dlerror'
  collect2: fout: ld gaf exit-status 1 terug
  make: *** [SDR_Control_launch] Fout 1

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: libc6 2.17-0ubuntu5
  ProcVersionSignature: Ubuntu 3.8.0-26.38-generic 3.8.13.2
  Uname: Linux 3.8.0-26-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8.1
  Architecture: amd64
  Date: Mon Jul 29 21:17:44 2013
  InstallationDate: Installed on 2013-07-27 (2 days ago)
  InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
  MarkForUpload: True
  ProcEnviron:
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=nl_NL.UTF-8
   SHELL=/bin/bash
  SourcePackage: eglibc
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1206236/+subscriptions



More information about the foundations-bugs mailing list