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