Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Codebase > C++ Builder, st...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 212 of 304
Post > Topic >>

C++ Builder, static linking, Tag4Info and unresolved externals

by "Kathleen" <kathbeau2004@[EMAIL PROTECTED] > Sep 20, 2005 at 09:02 AM

I am using Codebase v6.x with BCB 6. We are statically linking
C4LIB.LIB.

I can successfully use classes Code4, Data4, Index4 and Tag4, but
whenever I try to use Tag4info I get unresolved external errors from
the linker. I have been getting by using TAG4INFO structs instead, but
now I need to be able to generate an index tag definition dynamically.

The code is:
#include "d4all.hpp"

    Code4 t_codeBase;

    t_codeBase.accessMode = OPEN4DENY_RW;
    try {
        Data4    t_data;
        Index4   t_index;
        Tag4info t_tagInfo(t_codeBase);

        t_data.open(t_codeBase, "MY_TABLE.DBF");
        if (t_data.isValid())
        {
            try {
                // will add to Tag4info here, then

                t_index.create(t_data, t_tagInfo);

            } __finally {
                t_data.close();
            }
        }
    } __finally {
        t_codeBase.initUndo();
    }

The errors are:
[Linker Error]Unresolved external 'Tag4info::~Tag4info() referenced
from...
[Linker Error]Unresolved external 'Tag4info::Tag4info(Code4&)
referenced from...

Can anybody offer suggestions about what I am leaving out?

Thanks for your help.

Kathleen




 1 Posts in Topic:
C++ Builder, static linking, Tag4Info and unresolved externals
"Kathleen" <  2005-09-20 09:02:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 16:05:09 CDT 2008.