The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
52 views

The need for header file when including libraries?

When compiling an application that depends on a library we have to specify the include the library and also the header file. Since the library binary contains the actual function names couldn't the ...
1
vote
2answers
96 views

Microchip XC8: How to pack code against an upper limit?

I have a project for a PIC16F1454 that needs some custom linking. Basically, I've separated my code into two parts that can be downloaded separately in the field and thus update (almost) all of the ...
3
votes
7answers
1k views

Why do we need to include the .h while everything works when including only the .cpp file?

Why do we need to include both the .h and .cpp files , while we can make it works with making just a .cpp file and then including it . For example, Creating a file.h containing declarations, then ...
4
votes
1answer
330 views

How do programming languages integrate with OS runtimes

For example, Objective-C, Swift and Ruby (i.e. RubyMotion) integrate with the Cocoa framework. Is this done via linked libraries? I assume they call functions in existing binaries instead of simply ...
0
votes
1answer
66 views

Linking a GPL executable from proprietary .bat script [duplicate]

Licensing question - am I allowed to use a GPL binary executable (.exe) in my copyrighted .bat script? Namely I want to use FART command line tool (find & replace text in files) in an install ...
2
votes
3answers
179 views

Why are there two different kinds of linking, i.e. static and dynamic?

I've been bitten for the n-th time now by a library mismatch between a build and deployment environment. The build environment had libruby.so.2.0 and the deployment environment had libruby.a. One ruby ...
3
votes
1answer
91 views

In c++, difference between linking a class object and just including it.

this is my first time here. I'm a physics grad student and I've recently found a research group to work with. We study statistical mechanics using computer models, so there is a significant ...
0
votes
1answer
45 views

Dynamically loading MPL library in closed source application

I am dynamically loading an MPL 2.0 licensed library to use some of its exported functions in a feature. My code does not distribute the library, it simply detects it's presence on the system and uses ...
2
votes
2answers
76 views

How should an embedded OS be combined with user code?

As a side-effect of an embedded project I've been working on, I've developed a small operating system for an ARM processor. While the OS and my user code are in separate directories and have clean ...
-1
votes
4answers
315 views

What exactly is my program “linking” with overall? [closed]

I have heard that my C++ programs "need to link with the C++ library/runtime". However, the C++ runtime is just the compiler inserting stack operation code in to the image, or "boilerplate" code if ...
3
votes
2answers
203 views

How exactly does a program (executable image) and library (pre-compiled image) “link” together?

I know very well of the difference of static versus dynamic linking. What I want to know is, when linking statically (with a library like Winmm.lib on Windows), how does the linker "link" the ...
2
votes
2answers
238 views

May non-GPL-compatible scripts be linked at runtime to a GPLv3 library, by that (GPL) library itself?

First of all, pardon the title, as it's not very clear. I have an application I am writing that is GPLv3, and is in Java, which means that classfiles are generated and linked to for general operation. ...
0
votes
4answers
127 views

How could distribution and reuse flexibility be hurt by linking my program as a static or dynamic library?

I'm writing a small program that I want to be able to link with other programs. I also intend to run it from a command line interface, and maybe later with a GUI interface. How could distribution ...
7
votes
1answer
981 views

Why is the code section called a text section?

The section of an executable that contains code is sometimes called the .text section. In segmented memory architectures, a segment mapped as code is sometimes called a text segment. The unix error ...
7
votes
2answers
1k views

Questions about linking libraries in C

I am learning C (still very much a beginner) on Linux using the GCC compiler. I have noticed that some libraries, such as the library used with the math.h header, need to be linked in manually when ...
3
votes
2answers
4k views

Can I link to a gpl library from a closed source application?

Ok, before everyone goes shouting about duplicate questions, yes, I've already seen several questions like this here. But none answer the question. If I link against a gpl'd library without ...
1
vote
3answers
526 views

Is BSD-License compatible with Apple AppStores?

I would like to know if it is possible to make an application to be sold on Apple AppStores that is linked (during compilation) to a BSD-licensed library.
1
vote
1answer
51 views

Can thesaurus items have more than one USE relation?

I want to model a Thesaurus using the ANSI/NISO standard relation description like "broader term", "narrow term", etc. (see this Wikipedia article for details). Is it valid for a Thesaurus item in ...
1
vote
2answers
84 views

Methods on packaging an assembler with compiler

I am planning on creating a compiler that will generate assembly, that is as far as I really want to go with this project (don't want to create the object files myself or any of the machine code). ...