python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Beginner issue when linking 7z LZMA SDK to dietlibc
I'm using tcc on sabotage. I use below to link LZMA to dietlibc (the start.o and libc.a from dietlibc are in current path):
tcc -nostdlib start.o LzmaUtil.o Alloc.o LzFind.o LzmaEnc.o LzmaDec.o 7zFind...
Chenrui Yang
Votes: 0
Answers: 1
Building static lib with state multiple times
So I have this example code that I compile using VS to a static library:
int val = 0;
int f(int i) {
val += i;
return val;
}
Because of the global the library has an internal state. I now wa...
SampleTime
Votes: 0
Answers: 1
Executing C functions from C++ file results in linker error: "conflicting declaration with 'C' linkage" and "previous declaration 'C++' linkage
I am attempting to execute a C function from within a C++ file in the Arduino framework. The function I am trying to run, GuiLib_ShowScreen, appears in GuiLib.h and GuiLib.c as follows (the files are ...
Jebussy
Votes: 0
Answers: 1
python C API error: undefined reference to PyErr_Occurred
I'm working on a Python 2.7 project and I'm attempting to write a c++ extension to speed up our implementation of the D* lite algorithm. Never played with python C API, I'm struggling a lot in setting...
dc_Bita98
Votes: 0
Answers: 0