Libxerces-c.so file format not recognized treating as linker script




















Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Error in text file? Ask Question. Asked 4 years, 8 months ago. Active 4 years, 8 months ago. Viewed 6k times. Please and thank you. Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Pavel P Pavel P So, I put that text file specifically there because in the code, I have the following format I assume that the "-fpreprocessed" switch is correct and that this source file has already been pre-processed?

So again this is not a bug in the compiler but in the makefile. BTW I have looked at the man pages for both gcc and ld, I must say they are clear as mud, but then most are. If I add the options -fpreprocessed and -M as miscellaneous options, as I found in the man pages, the files compile without issue, but gcc does not create the proper object files for linking. So what gcc options would be required for forward declarations and standard include's? Here is the makefile Automatically-generated file.

Do not edit! Build complete for project Auth Comment 9 Andrew Pinski UTC This is your bug and not gcc bug, figure out why you are getting the following error However, gcc the ONLY thing that has changed, will not compile code that works! Old wise one, must one rewrite entrie working applications just so gcc understands?? Where did the error go? Read the manual for gcc and you will see -M does not compile the code at all, only gets the dependices for include files.

Comment 14 David Edelsohn UTC Jeff, The problem does not have to be the source code or the compiler, it can be the way that you are invoking the compiler. Find centralized, trusted content and collaborate around the technologies you use most.

Connect and share knowledge within a single location that is structured and easy to search. I have installed and try on Ubuntu 14 and Both are 32 bit. From the googling I have done, it seems to be a problem linking the files together, but I have no idea why and what is wrong.

If I do a more on libdl. If I more that file, it gives libdl And finally if i do a readelf -h libdl Here is an example make file, It includes the creation and usage of dependency files for included header files. It uses 'sed' for generation of the dependency files. In general, it expects all the files to be in the local directory, so you will need to modify it for your multiple source file directories, etc.

I finally figured out what was going on and it turns out it was something simple, as it often is. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?



0コメント

  • 1000 / 1000