How can I compile(gcc) on my c file at Cgreen?

48 Views Asked by At

I should use Cgreen to do work related verification. I get help here and I success build Cgreen from 'make' command.


  • make
  • make test
  • make install

but my question is how to compile as gcc compiler for the .c file I created. If anyone is familiar with Cgreen, can you explain to me with an example?

error message is


$ gcc first_test.o -lcgreen -o first_test

/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lcgreen collect2: error: ld returned 1 exit status


0

There are 0 best solutions below