Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't compile mysql "udf_example.so" file in Visual C++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm preparing a fairly elaborate MySQL - PHP - VB monster and I determeined that I needed a set of User Defined Functions to optimize the OrderBy clauses for basic select queries.

I figured that they couldn't possibly be more complex then SQL Server User Defined Functions. I was wrong.

After giving myself a crash course in C/C++, I tried to compile the udf_example.cc file in the Visual C++ environment I intended to write my functions in. I figured that if I had no idea what the command line compilation options mentioned I might want to figure that out BEFORE I went ahead and wrote the necessary functions.

After I realized that I needed to add the mysql-related .h files and the global.h file to my include folder, and that I needed to rename udf_example.cc as udf_example.c, I finally was able to run a test compilation of udf_example.so. This failed after turning up 102 errors in the my_sys.h and m_string.h files.

What sort of compilation options do I need to use in order to get this to work in Visual C++? Or should I just give up and use Borland instead?
 
So is my question really THAT stupid? Or impossible to answer? Or beyond the competency of everyone involved? Or was it phrased in an unforgivably rude manner?

This is of course a bump.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top