hello.
i am new to C::B.
i tried to build a simple static library with code::blocks. the code is written in d-language, but this shouldn't make any difference, because the problem affects the object file "testlib.o".
when the code is compiled C::B uses "ar" to build the final file "libtestlib.a"
but, somehow C::B uses the command "ar" in the wrong way: i get the following error-message:
Compiling: testlib.d
Linking static library: libTestlib.a
ar: illegal option -- T
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...
ar -M [<mri-script]
commands:
d - delete file(s) from the archive
m[ab] - move file(s) in the archive
p - print file(s) found in the archive
q[f] - quick append file(s) to the archive
r[ab][f]
- replace existing or insert new file(s) into the archive
t - display contents of archive
x- - extract file(s) from the archive
command specific modifiers:
[a] - put file(s) after [member-name]
- put file(s) before [member-name] (same as )
[N] - use instance [count] of name
[f] - truncate inserted file names
[P] - use full path names when matching
- - preserve original dates
- only replace files that are newer than current archive contents
generic modifiers:
[c] - do not warn if the library had to be created
- create an archive index (cf. ranlib)
- do not build a symbol table
[v] - be verbose
[V] - display the version number
@<file> - read options from <file>
emulation options:
No emulation specific options
ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big elf64-x86-64 elf64-little elf64-big srec symbolsrec tekhex binary ihex trad-core
why does c::b use the option "--T"? the command ar doesen't have this option.
whatcan i do to get my static library work?
i'd be very thankfull for any help!
ps: the source code: "libtest.d" (it's very smal. just for testing)
module testlib;
import std.stdio;
void add(int i1, int i2)
{
writefln("Greetings from your lib:",i1 + i2,"\n");
return 0;
}