-embedded doesn't seem to actually suppress the creation of main() though it doesn't seem to matter in most cases. However in another context, and under 3.4.0, I'm getting a duplicate main() ld error that is resolved by deleting the 'C_main_entry_point' declaration from the Chicken-generated .c before linking. Am I missing something?

fluffy% cat e.scm
(define (test)
  (display "Hello, World!")
  (newline))

(return-to-host)
fluffy% cat c.c
#include <stdlib.h>
#include <chicken.h>

int main(int argc, char **argv)
{
  C_word x;
  CHICKEN_run(C_toplevel);

  CHICKEN_eval_string("(test)", &x);
  return 0;
}
fluffy% csc e.scm c.c -embedded -k
fluffy% ./e
Hello, World!
fluffy% grep main e.c
C_main_entry_point

Thanks,

Derrell


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to