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?
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?