Valid C compilation

10 views
Skip to first unread message

Sam Choi

unread,
Jun 19, 2025, 11:19:59 AM6/19/25
to plink2-users
Hi Chris,

I am currently trying to compile the pgenlib as a RUST FFI for some personal project. Is it valid to compile the pgenlib with the 

$(CC) $(CFLAGS) -x c 

instead of 

$(CXX) $(CXXFLAGS)

I vaguely remember sometime ago it was mentioned that the full plink library are valid C code. I wonder if this would be alright.

(The main reason for this was that if I compile it with C++, the linker names are mingled, and it seems like the RUST FFI bindgen library was not handling the C++ codes as nice as the C codes)

Thanks

Sam

Chris Chang

unread,
Jun 19, 2025, 11:35:48 AM6/19/25
to Sam Choi, plink2-users
Yes, I would expect that to work.

--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/2dd8f1f1-49ae-4e11-b303-447c3a75860an%40googlegroups.com.

Sam Choi

unread,
Jun 19, 2025, 12:41:42 PM6/19/25
to plink2-users
Thanks!
Reply all
Reply to author
Forward
0 new messages