Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

Exporting symbols under a different name

$
0
0

My situation is as follows: I need to build a library where I export a "wrapped"strcpy (please ignore how that is useful to me) which the only thing it does is call the standard (from string.h) strcpy but return void, instead of returning char *. Which means, I need to #include string.h but this will immediately give me strcpy and gcc won't let me re-define it as I wish, and build a .so shared library exporting only the new, wrapped strcpy. How can I accomplish that?


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>