Hi,
This problem is related to This question I asked yesterday.
Now it seems that the linker flag --whole-archive forces the test object to be included in the binary. However, in linking with,
g++ main.cpp -o app -Wl,--whole-archive -L/home/dumindara/intest/test.a -Wl,-no--whole-archive
I get the following error:
/usr/lib64/gcc/x8...
Hi,
I have 3 tiny files which I use to make a static library and an app:
test.h
#ifndef TEST_H
#define TEST_H
class Test
{
public:
Test();
};
extern Test* gpTest;
#endif
test.cpp
#include "test.h"
Test::Test()
{
gpTest = this;
}
Test test;
main.cpp
#include "test.h"
#include <iostream>
using namespace...
Has anyone had success compiling QJson statically into an application? I am trying to use QJson statically in my Qt application (Windows/Mac), meaning I'm trying to use the source files directly rather than compiling a DLL and using it. Is this possible? My program is producing lots of errors when I attempt to do it, mostly "multiple dec...
If all I have of a library is a *.a static library. Is there a way I can convert that to *.so dynamically linked library? Maybe using ld?
I'm using SUSE Linux. ELF platform.
...
I am attempting to delay load wintrust.dll and crypt32.dll in my application (these are used to perform digital signature/publisher checks in a DLL). I am using VS2008. After adding these two DLLs as entries in the Delay Load property in the Linker section of my project properties, I still get LNK4199 warnings that nothing was loaded fro...
I have a file hello.c
#include<stdio.h>
void hello()
{
printf("Hello!\n");
}
A header hello.h
#ifndef _hello_
#define _hello_
void hello();
#endif
main.c
#include<stdio.h>
#include "hello.h"
int main()
{
hello();
return 0;
}
I am currently in the folder /home/user/name/programs
I am trying to build a static libra...
I have 4 .c files hello.c,here.c,bye.c and main.c.
One header file mylib.h
The contents are as follows
hello.c
#include<stdio.h>
void hello()
{
printf("Hello!\n");
}
here.c
#include<stdio.h>
void here()
{
printf("I am here \n");
}
bye.c
#include<stdio.h>
void bye()
{
printf("Bye,Bye");
}
main.c
#include<std...
I have 4 .c files hello.c,here.c,bye.c and main.c.
One header file mylib.h
The contents are as follows
hello.c
#include<stdio.h>
void hello()
{
printf("Hello!\n");
}
here.c
#include<stdio.h>
void here()
{
printf("I am here \n");
}
bye.c
#include<stdio.h>
void bye()
{
printf("Bye,Bye");
}
main.c
#include<std...
This is for AIX5.2, xlC compiler.
Lets imagine we have two static libraries:
A.a (contains funcA() function definition)
B.a (contains funcB() and funcC() functions)
Major thing is that funcB() in its body calls funcA() from A.a. But funcC() has independent code from A.a.
Needs to create a shared library, libX.so, which calls funcC() fro...
Hi I'm trying to create a static library that can added to any ios project, but I can only get it to work such that if I build the library in ios3, it'll work for ios3 projects but not ios4 and vice versa.
The errors I get are:
Undefined symbols:
".objc_class_name_UIImage", referenced from:
literal-pointer@_OBJC@_cls_refs@UII...
I know how to convert a static library to a dynamic library:
gcc -shared -o sofile.so -lafile.a
Is there a way to do it the other way around, such as converting a dynamic library to a static library or to an object file?
Meaning: I have mydynamiclib.so and I want either it in one big object file myobjectfile.o or one big static librar...
Hi,
I have some problems with creating static libraries.
Let say I have the static library A which I created and I included that to static library B with the relevant header files. I need to create a static library C which will be my final library and it it should include static library B which implicitly include the static library A....
Hi
I'm trying to build a static library that I can use with both ios3.x and ios4.x. I can build a static library with ios3.0 that works with another project in ios3.0 but won't compile in ios4. The same is true going from ios4 to ios3.
Here's how to recreate:
Open XCode 3.2.4 and start a new project that's a Cocoa Touch Static Libra...
I have finished developing a GUI desktop Ruby application that uses Qt through the qtbindings gem, and I need to release it with a few requirements:
The user doesn't have to build or compile anything, especially Qt libraries, installing Ruby and Rubygems is OK, but not more
It must run on Mac and Windows, Linux too preferably
I've tr...
I have created a static and dynamic library that I want to distribute. How should I make my .deb file so the headers are put in /usr/include/, the libraries in /usr/lib/, etc.
...