glfw

Linking error: DSO missing from command line

别来无恙 提交于 2019-11-26 11:03:46
问题 I am rather new to Linux (using Ubuntu 14.04 LTS 64bit), coming from Windows, and am attempting to port over an existing CUDA project of mine. When linking via /usr/local/cuda/bin/nvcc -arch=compute_30 -code=sm_30,compute_30 -o Main.o Display.o FileUtil.o Timer.o NeuralNetwork.o -L/usr/lib -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/cuda/lib64 -lGLEW -lglfw3 -lGL -lGLU -lcuda -lcudart I encounter the following error: /usr/bin/ld: /usr/local/lib/libglfw3.a(x11_clipboard.c.o):

Small Haskell program compiled with GHC into huge binary

扶醉桌前 提交于 2019-11-26 04:06:01
问题 Even trivially small Haskell programs turn into gigantic executables. I\'ve written a small program, that was compiled (with GHC) to the binary with the size extending 7 MB! What can cause even a small Haskell program to be compiled to the huge binary? What, if anything, can I do to reduce this? 回答1: Let's see what's going on, try $ du -hs A 13M A $ file A A: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.27, not stripped $ ldd A