Hello,

 

I am wonseok at TTI-C.
I used to run qc- on my Linux machine for a while without any problem,
but recently I have problems when I tried to install it on cygwin.
Installing itself seemed fine, but running qc- caused linking errors.
For example, the following is a simple "hello.c-":

 

target byteorder little;

 

import printf;

export main;

 

section "data" {

        format: bits8[] "Hello, World\n";

}

 

foreign "C" main(bits32 argc, "address" bits32 argv) {

 

        foreign "C" printf (format);

        foreign "C" return (0);

}

 

When compiling it, I ran into the following errors: 

 

$ qc-- -globals hello.c--

hello.o:fake:(.text+0x3c): undefined reference to `printf'

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0x
ab): undefined reference to [EMAIL PROTECTED]'

collect2: ld returned 1 exit status

 

When I did it on my Linux machine, it had no trouble.

While I am suspicious of something about cygwin, I want to know if there has
been anyone who ran qc- on cygwin.

 

Thank you,

Wonseok 

---

http://people.cs.uchicago.edu/~wchae/
_______________________________________________
Cminusminus mailing list
[email protected]
https://cminusminus.org/mailman/listinfo/cminusminus

Reply via email to