Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get access to CMyView variables from CMainFrame in MFC Pin
11917640 Member 4-Jan-21 22:29
11917640 Member 4-Jan-21 22:29 
GeneralRe: How to get access to CMyView variables from CMainFrame in MFC Pin
Member 150337045-Jan-21 2:44
Member 150337045-Jan-21 2:44 
Questionhaving problem to find an error Pin
bot-joy28-Dec-20 7:25
bot-joy28-Dec-20 7:25 
AnswerRe: having problem to find an error Pin
jeron128-Dec-20 7:40
jeron128-Dec-20 7:40 
AnswerRe: having problem to find an error Pin
CPallini28-Dec-20 20:22
mveCPallini28-Dec-20 20:22 
QuestionRe: having problem to find an error Pin
David Crow29-Dec-20 3:14
David Crow29-Dec-20 3:14 
AnswerRe: having problem to find an error Pin
Patrice T30-Dec-20 12:42
mvePatrice T30-Dec-20 12:42 
Questiongdi+ bitmap save on existing file - showing error Pin
Gopi Nath24-Dec-20 22:21
Gopi Nath24-Dec-20 22:21 
AnswerRe: gdi+ bitmap save on existing file - showing error Pin
Richard MacCutchan24-Dec-20 23:33
mveRichard MacCutchan24-Dec-20 23:33 
GeneralSolved - gdi+ bitmap save on existing file - showing error Pin
Gopi Nath24-Dec-20 23:53
Gopi Nath24-Dec-20 23:53 
Questionstd:strstream does not work Pin
Haakon S.22-Dec-20 2:38
Haakon S.22-Dec-20 2:38 
AnswerRe: std:strstream does not work Pin
Richard MacCutchan22-Dec-20 4:14
mveRichard MacCutchan22-Dec-20 4:14 
GeneralRe: std:strstream does not work Pin
Haakon S.22-Dec-20 22:21
Haakon S.22-Dec-20 22:21 
GeneralRe: std:strstream does not work Pin
Richard MacCutchan22-Dec-20 23:37
mveRichard MacCutchan22-Dec-20 23:37 
GeneralRe: std:strstream does not work Pin
Stefan_Lang23-Dec-20 23:59
Stefan_Lang23-Dec-20 23:59 
AnswerRe: std:strstream does not work Pin
Stefan_Lang23-Dec-20 23:56
Stefan_Lang23-Dec-20 23:56 
GeneralRe: std:strstream does not work Pin
Haakon S.24-Dec-20 0:37
Haakon S.24-Dec-20 0:37 
GeneralRe: std:strstream does not work Pin
Richard MacCutchan24-Dec-20 4:18
mveRichard MacCutchan24-Dec-20 4:18 
GeneralRe: std:strstream does not work Pin
Stefan_Lang24-Dec-20 5:10
Stefan_Lang24-Dec-20 5:10 
GeneralRe: std:strstream does not work Pin
Haakon S.24-Dec-20 11:59
Haakon S.24-Dec-20 11:59 
AnswerRe: std:strstream does not work. Solution (sort of) Pin
Haakon S.26-Dec-20 1:11
Haakon S.26-Dec-20 1:11 
GeneralRe: std:strstream does not work. Solution (sort of) Pin
Randor 26-Dec-20 3:28
professional Randor 26-Dec-20 3:28 
QuestionConfigure Script Issue Pin
jblixt21-Dec-20 12:37
professionaljblixt21-Dec-20 12:37 
AnswerRe: Configure Script Issue Pin
Randor 21-Dec-20 13:01
professional Randor 21-Dec-20 13:01 
AnswerRe: Configure Script Issue Pin
k505421-Dec-20 17:42
mvek505421-Dec-20 17:42 
You don't say whether make completes successfully or not. The compiler flags given tell the compiler where to find the pieces to buld the program. If the compile has completed successfully, but when you try to run the program you get a message
"error while loading shared libraries: <libname.so>: cannot open shared object file: No such file or directory
then the problem is at runtime, not compile time. As Randor notes, you can tell the link-loader where to find the library with LD_LIBRARY_PATH
k5054@localhost$ LD_LIBRARY_PATH=/usr/local/lib64 myprog arg1 arg2
sets LD_LIBRARY_PATH for the given command. To set for a single session do
k5054@localhost$ export LD_LIBRARY_PATH=/usr/local/lib64
k5054@localhost$ myprog arg1 arg2
You can add that to your shell's .profile file. and it will be set every time you log in. If you want to set this up permanently for all users ont the system, then as root create a file /etc/ld.so.conf.d/local.conf containing the single line
/usr/local/lib64
Now, as root, run ldconfig, and you should be able to run your program from any login, without needing to set LD_LIBRARY_PATH in your .profile or per session/per command.

you can check what libraries are being loaded using the ldd command
<
k5054@localhost$ ldd /bin/bash
        linux-vdso.so.1 (0x00007ffebf5f6000)
        libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f7ec6539000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7ec6533000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7ec6341000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7ec66b5000) 
If the link-loader can't find a library, it will show
libsomelib.so => not found
Keep Calm and Carry On

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.