Hello,
I am using Eclipse Galileo 3.5 with CDT 6.0
I am having a problem in including the header files located in c:\cs106 ... I searched on google and found that I have to go to Project Properties > C/C++ General > Paths and Symbols and in GNU C++ I have added the path c:\cs106
And eclipse is able to find them now but the other probl...
I'm building an executable using GCC 3.4.0 . The target is an embedded system. I've been using a way of modularly defining "console command handlers" by defining a function pointer to a handler in any compilation unit to be in a certain linker section. At runtime when a command is entered on the console I can loop through all the handler...
I am writing a C program for a 8051 architecture chip and the SDCC compiler.
I have a structure called FilterStructure;
my code looks like this...
#define NAME_SIZE 8
typedef struct {
char Name[NAME_SIZE];
} FilterStructure;
void ReadFilterName(U8 WheelID, U8 Filter, FilterStructure* NameStructure);
int main (void)
{
FilterStru...
I built wxWidgets on Linux using this command:
../configure --enable-shared --disable-debug
It see results of this build:
/usr/local/lib/wx/config/gtk2-ansi-release-2.8
/usr/local/lib/wx/include/gtk2-ansi-release-2.8/wx/setup.h
wx-config output:
alex@alex-linux:~$ wx-config --list
Default config is gtk2-ansi-release-2.8
Defa...
When say 3 programs (executables) are loaded into memory the layout might look something like this:
I've following questions:
Is the concept of Virtual Memory limited to user processes? Because, I am wondering where does the Operating System Kernel, Drivers live? How is its memory layout? I want to know more about kernel side memory...
I have the following line of code:
if( !self.isLoading && TTIsEmptyString !TTIsEmptyString(_username) )
and it results in the following error:
Undefined symbols:
"_TTIsEmptyString", referenced from:
-[UserModel load:more:] in UserModel.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I've read, that linker error...
My native C++ COM component uses ATL. In DllRegisterServer() I call CComModule::RegisterServer():
STDAPI DllRegisterServer()
{
return _Module.RegisterServer(FALSE); // <<< notice FALSE here
}
FALSE is passed to indicate to not register the type library.
ATL is available as sources, so I in fact compile the implementation of CComM...
Hi,
I want to release an application I developed as a hobby both for Linux and Windows. This application depends on boost (and possibly other libraries). The norm for this kind of application (a chess engine) is to provide only an executable file and possibly some helper files.
I tough it would be a good idea to statically link the lib...
I'm new to boost, and thought I'd try it out with some realistic deployment scenarios for the .dlls, so I used the following command to compile/install the libraries:
.\bjam install --layout=system variant=debug runtime-link=shared link=shared
--with-date_time --with-thread --with-regex --with-filesystem
--includedir=<my include directo...
I understand the process of using a 3rd party library to access functions outside of my code base, but how do i actually set up Visual Studio 2005 to include them in the project.
I have a 3rd party library with some headers, some cpp's, and some .lib files.
In the projects properties I add the top level external library directory as an...
This what I did but it results in errors:
1: In win32-msvc2008\qmake.conf I set QMAKE_CFLAGS_RELEASE = -O1 -Og -GL -MD
2: From MSVC2008 CMD I run vcvarsall.bat x86 and vcvars32.bat "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
3: From Qt 4.6.2 CMD I run the following
C:\Qt\4.6.2>configure -release
-nomake examples -nomak...
Hello
What for -fPIE (-pie, "position-independent executable") option is needed in gcc and ld?
How it will change the code, e.g. function calls?
...
On certain error cases ATL invokes AtlThrow() which is implemented as ATL::AtlThrowImpl() which in turn throws CAtlException. The latter is not very good - CAtlException is not even derived from std::exception and also we use our own exceptions hierarchy and now we will have to catch CAtlException separately here and there which is lots ...
I have a Visual Studio 2008 C++ project that outputs a static library and uses some functionality of the Boost Library. When I build the project in Debug configuration, the .lib file is 7.84 MB. When I build the project in Release configuration, the .lib file is 23.5 MB. !!!!
The only Boost headers I include are:
boost/function.hpp...
I already asked a similar question, "PE Header requirements", but I'm not really satisfied with it's answer.
I am building an assembler/linker, in Java SE 1.6. I have read about 5 different documentations/specifications about the PE/COFF header and file format, but I'm stuck at a problem:
My generated file is not valid, says Windows: "...
I use autoconf and when the target is mingw I was using the -mno-cygwin flag. This has been removed so I'm trying to using the mingw tool chain. The problem is the linker isn't finding my libraries
/bin/sh ../../../libtool --tag=CXX --mode=link mingw32-g++ -g -Wall -pedantic -DNOMINMAX -D_REENTRANT -DWIN32 -I /usr/local/include/w32ap...
I've created a custom widget plugin. The plugin integrates fine with Qt Creator but when I compile the program, I'm getting this error:
"test.h: No such file or directory"
Where test.h is the name of the custom widget. What am I doing wrong? This is the *.pro file of the application:
TEMPLATE = app
SOURCES += main.cpp \
mainwindow...
I'm developing my own OS, but for this I need to touch on linking, then I've done this linking script to build it:
ENTRY (loader)
SECTIONS{
. = 0x00100000
.text : {
*(.text)
}
.bss : {
sbss = .;
*(COMMON)
*(.bss)
ebss = .;
}
}
.data ALIGN (0x1000) : {
start_ctors = .;
*(.ctor*)
e...
So this is a really simple question, I just can't find the answer. I have some text in a UITextView, that I would like to have show as blue, and serve as a link to a website. How do I do that in interface builder? Thanks
...
I am trying to understand the process of dynamic linking, in detail.
For the purpose, I tried digging into .got section of ELF.
q.1 : I read in ELF Standard 1.2(Appendix) that Global offset table's format and interpretation are processor specific. Can some body please help me, why we dont have standard for this as well and why it has to...