Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

environment OS: Arch Linux x86_64 Host: Windows Subsystem for Linux - archlinux (2.6.2.0) Kernel: Linux 6.6.87.2-microsoft-standard-WSL2 compiler: aarch64-linux-gnu-gcc 15.1.0 Using built-in specs. ...
Bill's user avatar
  • 1
1 vote
2 answers
69 views

I am building a shared library A which depends on another shared library B present in another directory dir2. When I link shared library B to A with relative path using -L../dir2 -lB it builds fine. ...
Harry's user avatar
  • 4,232
-1 votes
1 answer
52 views

The Makefile below throws the following error when compiled. Error: make: *** No rule to make target 'libfoo.so.0.1', needed by 'all'. Stop. Makefile: LIBNAME = libfoo SOLIBNAME = $(LIBNAME).so.0.1 ...
Harry's user avatar
  • 4,232
0 votes
1 answer
92 views

I have a Makefile which contains a target by name abc-def-ghi. When I compile this particular target in my Linux machine with the command make abc-def-ghi, it builds successfully, but when the same ...
Harry's user avatar
  • 4,232
1 vote
1 answer
64 views

This Makefile specifies a target-specific variable and a global one VAR=value target: VAR2=value2 ifdef VAR VAR3+=$(VAR) endif ifdef VAR2 VAR3+=$(VAR2) endif target: @echo $(VAR) $(VAR2)...
user377486's user avatar
2 votes
1 answer
63 views

I am trying to compile .c-files and store the output .o-files into different folders. When making a debug-build, the output files should be stored in build/debug/. When making a release-build, the ...
user44791's user avatar
1 vote
2 answers
76 views

From here, I realize it is possible to query the pwd. I have the following 2 lines that I currently comment on/off # LDLIBSOPTIONS=-L "/home/OpenXLSX/linux/lib" LDLIBSOPTIONS=-L "/...
One_Cable5781's user avatar
1 vote
1 answer
60 views

I am trying to save the output of a makefile. I have tried everything that I can think of without success. > >> tee compile.log > 1> tee compile.log > 2> tee compile.log > &>...
jwzumwalt's user avatar
  • 211
2 votes
3 answers
183 views

I want to build make test with Makefile, and the test target should generate <file_name>_test executable based on the folder tests/<file_name>.c. All tests/*.c files have a main() function....
stackbiz's user avatar
  • 1,914
3 votes
2 answers
174 views

The lib folder contains many *.h and *.c files, and all files are in development phrase and they contain many errors including syntax errors. So I want to write the Makefile to debug all libraries one ...
stackbiz's user avatar
  • 1,914
2 votes
2 answers
139 views

C/Makefile relative newbie here. I have a C project whose structure looks like this: main.c subdir1 a.h a.c b.h b.c subdir2 x.h x.c y.h ...
user12066's user avatar
  • 673
0 votes
1 answer
79 views

The following is a minimal example from something odd that was happening to me. My situation was obviously more complex than what follows, but the "misunderstanding" boils down exactly to ...
Pollo's user avatar
  • 299
0 votes
1 answer
50 views

I am using an alternate make system tied in to the main make. The issue is when I do: make -B For rebuild all, it does not pass that to the submake. I want the submake to also do a rebuild. The only ...
Scott Franco's user avatar
0 votes
1 answer
66 views

I installed mingw64 on my Windows 11 system a few days ago. When using mingw32-make, the following code (lines 27 and 28) in the makefile is failing. voice.exe: ${OBJS} ${CC} -o "$@" ${...
JavaLatte's user avatar
  • 386
0 votes
2 answers
69 views

Here is my Makefile. All the %.o depend on %.c and main.h, except the ones under main, event, cmd folder, which depend on $(MAIN_HEADERS). How do I combine the below and make them simpler, as their ...
Metal Slime's user avatar

15 30 50 per page
1
2 3 4 5
1714