On 7/5/2010 2:13 AM, ke...@ca wrote:
thank you all. You all are right. I got the desired dlls. Now I know I was
misleaded by the statement that GCC is a collection of compilers and it
automatically use a compiler according to a programming language.
It does this for the frontend, not the backen
thank you all. You all are right. I got the desired dlls. Now I know I was
misleaded by the statement that GCC is a collection of compilers and it
automatically use a compiler according to a programming language.
Marco atzeri-3 wrote:
>
> --- Dom 4/7/10, ke...@ca ha scritto:
>
>>
>> Hi there
--- Dom 4/7/10, ke...@ca ha scritto:
>
> Hi there,
>
> I wrote a file, hello.c. It has only one function: print a
> message like
> "hello!".
> # hello.c #
> #include
> void hello() { printf( "Hello.\n" ) ; }
>
> $gcc -c hello.c
> $gcc -shared -o hello.dll hello.o
>
> I successuf
On 2010-07-04 10:24Z, ke...@ca wrote:
>
> $gcc -c hello.c
> $gcc -shared -o hello.dll hello.o
>
> I successufully built it as DLL, hello.dll.
Here, the C runtime library is automatically linked.
> Then, I rewrote it in c++.
[...]
> Then, I used the commands above to built DLL, but it failed. Wh
On 2010-07-04 12:27 PM, ke...@ca wrote:
Forgot to attach error information.
hello.o:hello.cpp:(.text+0xd): undefined reference to
`std::basic_string, std::allocator
::size() const'
hello.o:hello.cpp:(.text+0x60): undefined reference to
`std::basic_string, std::allocator
::operat
Forgot to attach error information.
hello.o:hello.cpp:(.text+0xd): undefined reference to
`std::basic_string, std::allocator
>::size() const'
hello.o:hello.cpp:(.text+0x60): undefined reference to
`std::basic_string, std::allocator
>::operator[](unsigned int) const'
hello.o:hello.cpp:(.text+0x9f)
Hi there,
I wrote a file, hello.c. It has only one function: print a message like
"hello!".
# hello.c #
#include
void hello() { printf( "Hello.\n" ) ; }
$gcc -c hello.c
$gcc -shared -o hello.dll hello.o
I successufully built it as DLL, hello.dll.
Then, I rewrote it in c++.
#
7 matches
Mail list logo