Simon Pickles wrote:
>
> Have you been able to get this small example to compile?
Here's the final code, which compiles, links, and runs:
//// ClassWithSSQLS.cpp ///////////////////////////////////
#include "ClassWithSSQLS.h"
ClassWithSSQLS::ClassWithSSQLS()
{
macro m;
}
//// main.cpp /////////////////////////////////////////////
#define MYSQLPP_SSQLS_NO_STATICS
#include "ClassWithSSQLS.h"
int main()
{
ClassWithSSQLS c;
return 0;
}
//// ClassWithSSQLS.h /////////////////////////////////////
#ifndef CLASSWITHSSQLS_H
#define CLASSWITHSSQLS_H
#include "ssqls.h"
class ClassWithSSQLS
{
public:
ClassWithSSQLS();
private:
macro macro_;
};
#endif
//// ssqls.h //////////////////////////////////////////////
#ifndef SSQLS_H
#define SSQLS_H
#include <mysql++.h>
#include <custom.h>
sql_create_2(macro, 1, 0,
unsigned int, id,
unsigned int, key)
#endif
| Thread |
|---|
| • Linking errors after moving to SSQLSs, macro problem | Simon Pickles | 12 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | William F. Dowling | 12 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 12 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Simon Pickles | 16 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 17 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Simon Pickles | 17 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 17 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Simon Pickles | 17 Dec |
| • RE: Linking errors after moving to SSQLSs, macro problem | Joel Fielder | 17 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Drew M. | 18 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Simon Pickles | 18 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 18 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Jim | 19 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 19 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Jim | 20 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 21 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 18 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 18 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Simon Pickles | 18 Dec |
| • Re: Linking errors after moving to SSQLSs, macro problem | Warren Young | 18 Dec |