C코드로 되어 있는걸 C++ 문법으로, 즉, 클래스화 해서
만들려고 하는데 컴파일시 여러 오류가 나는군요.
대충 클래스는 아래와 같이 했습니다.
[code:1]
#ifndef _MOD_DAEMON_H_
#define _MOD_DAEMON_H_
#include <unistd.h>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <mysql.h>
#define DB_HOST "localhost"
#define DB_USER "test"
#define DB_PASS "test"
#define DB_NAME "test"
using namespace std;
class Daemon
{
private:
public: