libredwg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libredwg] Need help to create a new function...


From: guruprasad rane
Subject: [libredwg] Need help to create a new function...
Date: Sun, 3 Apr 2011 22:10:27 +0530

Hi All

I am very new to C programming. Just few days back I started with C. I am trying to create a basic dwg reading function. But I am stuck. I am using testSVG.c for reference.

I created a file testGuru.c in "examples" folder.

Here is the code

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <dwg.h>
#include "../src/bits.h"
#include "suffix.c"

int
testdwg(char *filename);

int main(int argc, char *argv[])
{
    REQUIRE_INPUT_FILE_ARG (argc);
    return testdwg(argv[1]);
}

int
testdwg(char *filename)
{
    int error;
    Dwg_Data dwg;
    error = dwg_read_file(filename, &dwg);
    return error ? 1 : 0;
}

When I compile this code using gcc it outputs ---- undefined reference to "dwg_read_file"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]