I'm trying to cross compile a c++ app under Fedora. It uses XSD codesynthesis to generate code from a xml file. I use serialization (XDR) not very portable I know. MinGW32 comes with a library that includes a XDR api. It's called portableXDR. The problem is that the library does not include some of the functions defined by Sun XDR which is the api that XSD uses to generate the files. I modified portableXDR to include those functions. I rebuilt the package and installed it. I checked the content of the library (using nm) to make sure that the new headers of the new functions that I have defined are there. When I link the library with target_link_library I get undefined references to those functions that I have added to the library.

Any kind of help/hint would be appreciated.