473,385 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sucessfull Compilation but Build Fails with FATAL Error Please help

Hi,

I am new to this news group, hope to get prompt solution from you, gurus of
VC.

Well i had a project developed in VC++ 6.0, it uses Adobe Plugin Development
SDK, I am trying to upgrade my project to VC++.NET,

below is the code snipplet from the project

#if WIN_PLATFORM // WIN ONLY
#include <afxwin.h>
extern "C" {
#include "ASCalls.h"
#include "AVCalls.h"
#include "PDCalls.h"
#include "CosCalls.h"
#include "PICrypt.h"
#include "PIMain.h"
};
After this declaration i am using the code below

int GetSignatureStatus(const PDDoc& thePDDoc, // [in]: The parent PDDocconst
PDAnnot& thePDAnnot) // [in]: The annotation to check
{
int intSignedStatus = 0;
DURING
const CosObj cosPDAnnot = PDAnnotGetCosObj(thePDAnnot);
const ASInt32 intPreFlags = PDDocGetFlags(thePDDoc);
// Ensure valid PDAnnot
if (!CosObjEqual(cosPDAnnot, CosNewNull()))
{
const CosObj cosString = CosDictGet(cosPDAnnot,
ASAtomFromString("Contents"));
// Ensure valid CosString
if (!CosObjEqual(cosString, CosNewNull()) && CosString ==
CosObjGetType(cosString))
{
ASInt32 numBytes = 0;
const char* pchData = CosStringValue(cosString, &numBytes);
win_btoken BToken;
.........
.........
.........
.........
}

My code gets compiled with 0 error 0 warnings in VC++.NET IDE, But when i
try to build the solution in VC++.NET it says
1. PrudForm error LNK2019: unresolved external symbol _btoken_destroy
referenced in function "public: __thiscall btoken::~btoken(void)"
(??1btoken@@QAE@XZ)
2. PrudForm error LNK2019: unresolved external symbol _btoken_is_captured
referenced in function "public: int __thiscall
btoken::is_captured(void)const " (?is_captured@btoken@@QBEHXZ)
3. PrudForm error LNK2019: unresolved external symbol
_btoken_verify_document referenced in function "public: int __thiscall
btoken::verify_document(class doc_integrity const &)const "
(?verify_document@btoken@@QBEHABVdoc_integrity@@@Z )
4. PrudForm error LNK2019: unresolved external symbol _doc_integrity_create
referenced in function "public: __thiscall
doc_integrity::doc_integrity(void)" (??0doc_integrity@@QAE@XZ)
5. PrudForm error LNK2019: unresolved external symbol _doc_integrity_destroy
referenced in function "public: __thiscall
doc_integrity::~doc_integrity(void)" (??1doc_integrity@@QAE@XZ)
6. PrudForm error LNK2019: unresolved external symbol
_doc_integrity_traverse referenced in function "public: int __thiscall
doc_integrity::traverse(char const *)" (?traverse@doc_integrity@@QAEHPBD@Z)
7. PrudForm fatal error LNK1120: 7 unresolved externals

when i double click the error description in the Task List it takes me to a
resource file which has following code
//Microsoft Developer Studio generated resource script.
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
////////////////////////////////////////////////////////////////////////////
/
// Generated from the TEXTINCLUDE 2 resource.
#include "afxres.h"
////////////////////////////////////////////////////////////////////////////
/
#undef APSTUDIO_READONLY_SYMBOLS
////////////////////////////////////////////////////////////////////////////
/
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifndef _MAC
////////////////////////////////////////////////////////////////////////////
/
// Version
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Prudential\0"
VALUE "FileDescription", "PrudForm\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "PrudForm\0"
VALUE "LegalCopyright", "Copyright © 2000\0"
VALUE "OriginalFilename", "PrudForm.api\0"
VALUE "ProductName", "PrudForm\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#endif // !_MAC
#ifdef APSTUDIO_INVOKED
////////////////////////////////////////////////////////////////////////////
/
// TEXTINCLUDE
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
#endif // English (U.S.) resources
////////////////////////////////////////////////////////////////////////////
/
#ifndef APSTUDIO_INVOKED
////////////////////////////////////////////////////////////////////////////
/
// Generated from the TEXTINCLUDE 3 resource.
////////////////////////////////////////////////////////////////////////////
/
#endif // not APSTUDIO_INVOKED

I dont know what weird is going on, please help

Thanks in advance,

Regards,
Vishal

Nov 16 '05 #1
1 2141
Vishal Saxena wrote:
Hi,

I am new to this news group, hope to get prompt solution from you,
gurus of VC.

Well i had a project developed in VC++ 6.0, it uses Adobe Plugin
Development SDK, I am trying to upgrade my project to VC++.NET,

below is the code snipplet from the project

#if WIN_PLATFORM // WIN ONLY
#include <afxwin.h>
extern "C" {
#include "ASCalls.h"
#include "AVCalls.h"
#include "PDCalls.h"
#include "CosCalls.h"
#include "PICrypt.h"
#include "PIMain.h"
};
After this declaration i am using the code below

int GetSignatureStatus(const PDDoc& thePDDoc, // [in]: The parent
PDDocconst PDAnnot& thePDAnnot) // [in]: The annotation to check
{
int intSignedStatus = 0;
DURING
const CosObj cosPDAnnot = PDAnnotGetCosObj(thePDAnnot);
const ASInt32 intPreFlags = PDDocGetFlags(thePDDoc);
// Ensure valid PDAnnot
if (!CosObjEqual(cosPDAnnot, CosNewNull()))
{
const CosObj cosString = CosDictGet(cosPDAnnot,
ASAtomFromString("Contents"));
// Ensure valid CosString
if (!CosObjEqual(cosString, CosNewNull()) && CosString ==
CosObjGetType(cosString))
{
ASInt32 numBytes = 0;
const char* pchData = CosStringValue(cosString,
&numBytes); win_btoken BToken;
.........
.........
.........
.........
}

My code gets compiled with 0 error 0 warnings in VC++.NET IDE, But
when i try to build the solution in VC++.NET it says
1. PrudForm error LNK2019: unresolved external symbol _btoken_destroy
referenced in function "public: __thiscall btoken::~btoken(void)"
(??1btoken@@QAE@XZ)


It looks like you're missing a library, or perhaps linking with a library
that was not compiled with VC7{.1}. Where should 'btoken_destroy' be coming
from?

-cd
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
1
by: gavs | last post by:
Hi, I have written a small C code to test with OCI calls (OCI Initialize, OCIEnvInit etc). The program is called myprog.C. The OS is AIX 5.2. myprog.C #include<oci.h> // This is in...
4
by: Senthil | last post by:
I installed the MSXML 4.0 sp2 and wanted to play around with DOM using C++ and followed the instructions on "Program with DOM in C/C++" section in the MSXML SDK. The compilation fails in Visual...
0
by: Jie | last post by:
Does anyone know why I keep having the following error. I have to rebuild the solution every time I run it in design mode. thanks jie Server Error in '/ReapPortal' Application....
0
by: Rich | last post by:
I am trying to obtain more debugging information for an issue I reported (ref. Bug #37185 <http://bugs.php.net/bug.php?id=37185&edit=2>). Unfortunately, I do not have access to the now-ancient...
1
by: Arsalan Ahmad | last post by:
Hi all, I am trying to compile some source files using makefile. While compiling I am getting errors as shown below. Any idea how can I solve this problem. I believe I need to add some...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
1
by: hamardk | last post by:
Hi, I'm trying to compile log4cpp-0.3.5rc3 on : SunOS belaurora 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-4 I'm having compilation issues which are: In file included from...
1
by: jacek.dziedzic | last post by:
Hi! I have a program that #includes a header file of an external library. If the environment is set-up correctly, this file is found in the include path and everything works. Now, assume...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.