I writed LD_PRELOAD module, all my sources are in source.cpp
, but now i need to add crypt.cpp
file with some classes i need, how can i compile LD_PRELOAD via g++ using more that one .cpp file?
Thanks!
I writed LD_PRELOAD module, all my sources are in source.cpp
, but now i need to add crypt.cpp
file with some classes i need, how can i compile LD_PRELOAD via g++ using more that one .cpp file?
Thanks!
Copyright © 2021 Jogjafile Inc.
If your command to build the preload library was:
then you would change it to:
i.e. you simply add the name of the file to the end of the command line compiling the .cpp files.