Hi All -
I'm working though the First Steps tutorial on the POCO Project site, and I've successfully built the library (Debian Linux, 2.6.26, gcc 4.3.2) under my home directory
~/Development/POCO
with the shared libraries located in
~/Development/POCO/lib/Linux/x86_64/lib
My problem is that any application I build that depends on t...
Hi,
I wanted to know where does SYMBOL TABLE reside. Is it in .obj files or an .exe file?
Thanks in advance.
...
I am writing a C program using graphviz. But I am not able to link graphviz as library.
I have tried several approaches. When I do
#include "gvc.h"
and include all .lib,.dll and *.h files in my working directory, gcc gives this linker error:
/cygdrive/c/Users/aditya/AppData/Local/Temp/ccMRaUr9.o:a.c:(.text+0x2b): undefined reference...
Greetings,
I have a subdirs project which wraps a couple libraries and a main application. When I change something in one of the libraries the main application does not relink with them.. does anyone have a trick for getting an application to relink with its statically linked libs automatically when using QT Creator?
-Dan O
...
Due to using Gentoo, it often happens that after an update programs are linked against old versions of libraries. Normally, revdep-rebuild helps resolving that, but this time it's a dependency of a python library and python-updater won't pick it up.
Is there a "hierarchical" variant of ldd which shows me what shared library depends on w...
Consider this situation:
I'm creating a DLL (let's call this dllA), which, in turn, calls functions in other DLLs (let's call these dllX, dllY and dllZ). If someone else wanted to use dllA, they'd need a copy of dllX, Y and Z as well.
Is there a way to build dllA such that the needed functions in dllX, Y and Z get linked into dllA? I ...
Hi, In my dotnetnuke application i added so many modules, i want to display the content in the contentpane when i clicked on the items that is in in the left / right pane. Can you give me the code for navigating the modules..
...
I am trying to build libdecodeqr on a mac. My c++ building and linking history is all on windows, so it's an exciting journey of discovery.
I have finally got to the point where I want to create the linked library. The command I am running is:
g++ -shared -o libdecodeqr.so.0.9.3 bitstream.o codedata.o container.o ecidecoder.o formati...
I am looking after a huge old C program and converting it to C++ (which I'm new to). There are a great many complicated preprocessor hacks going on connected to the fact that the program must run on many different platforms in many different configurations. In one file (call it file1.c) I am calling functionA() and in another file (call ...
The /OPT:REF option causes the Visual C++ linker to
Exclude functions and/or data that are never referenced
(MSDN)
This seems like it would be a good way to identify obsolete code in a legacy codebase. Is there any way to get the linker to output what is eliminated?
...
I'm getting a linker error using CString the error is:
error LNK2001: unresolved external symbol "private: static class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > CConfiguration::_campaignFolderPath" (?_campaignFolderPath@CConfiguration@@0V?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@A...
Trying to get getch() working to capture key press.
#include <curses.h>
...
...
WINDOW *w;
char f;
w = initscr();
timeout(3000);
f = getch();
endwin();
is giving me following error:-
undefined reference to `wgetch'
undefined reference to `stdscr'
...
I'm writing a DLL for an audio-player (foobar2000) using its SDK. My DLL links to another DLL, and I've done so using an import library (.lib). However, at run-time, the audio player complains that my DLL (the one that links to the other) is missing a dependency.
I don't know if this can be generalized or not, but if the first DLL is l...
Whenever I try to compile my iPhone app which i am porting I get linking errors. The app uses a scripting language called Squirrel (to read the level files, fine by the SDK, no user input). I have linked all the libraries including libsquirrel.a. What am I doing wrong?
(App is SuperTux, source code at supertux.lethargik.org for computer ...
Is there some simple an efficient way to know that a given dynamically linked ELF is missing a required .so for it to run, all from the inside of a C/C++ program?
I need to program a somewhat similar functionality as ldd, without trying to execute the ELF to find out the (met/unmet) dependencies in the system. perhaps asking the ld-linu...
My compiler:xlc version 10.1
Environment: AIX5.3
Linker: ld
When i work on Linux , with gcc (4.4.1) i use the following option
-Wl,-rpath
(-Wl for the linker options) it adds a directory to the runtime library search path.
What's the equivalent for xlc compiler ?
or what's the equivalent to -rpath for the linker.
Thank you.
...
Hey all,
I have been trying to build the logstalgia project (http://code.google.com/p/logstalgia/) on my Mac (10.5). Rather than having to link it to the system libraries correctly, I have built and added all of the dependencies to the project. I am new at this, but I do think I have done this correctly, mostly because I have had two o...
My code is stored in a main.cpp file which contains the void main() function, and a class MyClass which I now want to split to another file. IDE is Microsoft Visual Studio 2008 Professional.
myclass.h
#include <tchar.h>
class MyClass {
public:
static bool MyFunction (TCHAR* someStringArgument);
};
myclass.cpp
#include <tchar.h>
...
When I use LD_PRELOAD=/usr/local/lib/libtcmalloc.so, all my calls to malloc become tcmalloc calls. However, when I link statically against libtcmalloc, I find that straight malloc is getting called unless I still use the LD_PRELOAD setting.
So how can I statically compile against tcmalloc in such a way that my mallocs hook into tcmallo...
Is it possible to run an iPhone app from your own app?
For example when you press a button in your app, the iPhone switches to another app.
If so, how would you do this?
...