473,564 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 GetSignatureSta tus(const PDDoc& thePDDoc, // [in]: The parent PDDocconst
PDAnnot& thePDAnnot) // [in]: The annotation to check
{
int intSignedStatus = 0;
DURING
const CosObj cosPDAnnot = PDAnnotGetCosOb j(thePDAnnot);
const ASInt32 intPreFlags = PDDocGetFlags(t hePDDoc);
// Ensure valid PDAnnot
if (!CosObjEqual(c osPDAnnot, CosNewNull()))
{
const CosObj cosString = CosDictGet(cosP DAnnot,
ASAtomFromStrin g("Contents") );
// Ensure valid CosString
if (!CosObjEqual(c osString, CosNewNull()) && CosString ==
CosObjGetType(c osString))
{
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_capt ured
referenced in function "public: int __thiscall
btoken::is_capt ured(void)const " (?is_captured@b token@@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_docume nt@btoken@@QBEH ABVdoc_integrit y@@@Z)
4. PrudForm error LNK2019: unresolved external symbol _doc_integrity_ create
referenced in function "public: __thiscall
doc_integrity:: doc_integrity(v oid)" (??0doc_integri ty@@QAE@XZ)
5. PrudForm error LNK2019: unresolved external symbol _doc_integrity_ destroy
referenced in function "public: __thiscall
doc_integrity:: ~doc_integrity( void)" (??1doc_integri ty@@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@@QAEH PBD@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_READON LY_SYMBOLS
////////////////////////////////////////////////////////////////////////////
/
// Generated from the TEXTINCLUDE 2 resource.
#include "afxres.h"
////////////////////////////////////////////////////////////////////////////
/
#undef APSTUDIO_READON LY_SYMBOLS
////////////////////////////////////////////////////////////////////////////
/
// English (U.S.) resources
#if !defined(AFX_RE SOURCE_DLL) || defined(AFX_TAR G_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 "CompanyNam e", "Prudential \0"
VALUE "FileDescriptio n", "PrudForm\0 "
VALUE "FileVersio n", "1, 0, 0, 1\0"
VALUE "InternalNa me", "PrudForm\0 "
VALUE "LegalCopyright ", "Copyright © 2000\0"
VALUE "OriginalFilena me", "PrudForm.api\0 "
VALUE "ProductNam e", "PrudForm\0 "
VALUE "ProductVersion ", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInf o"
BEGIN
VALUE "Translatio n", 0x409, 1200
END
END
#endif // !_MAC
#ifdef APSTUDIO_INVOKE D
////////////////////////////////////////////////////////////////////////////
/
// 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_INVOKE D
#endif // English (U.S.) resources
////////////////////////////////////////////////////////////////////////////
/
#ifndef APSTUDIO_INVOKE D
////////////////////////////////////////////////////////////////////////////
/
// Generated from the TEXTINCLUDE 3 resource.
////////////////////////////////////////////////////////////////////////////
/
#endif // not APSTUDIO_INVOKE D

I dont know what weird is going on, please help

Thanks in advance,

Regards,
Vishal

Nov 16 '05 #1
1 2153
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 GetSignatureSta tus(const PDDoc& thePDDoc, // [in]: The parent
PDDocconst PDAnnot& thePDAnnot) // [in]: The annotation to check
{
int intSignedStatus = 0;
DURING
const CosObj cosPDAnnot = PDAnnotGetCosOb j(thePDAnnot);
const ASInt32 intPreFlags = PDDocGetFlags(t hePDDoc);
// Ensure valid PDAnnot
if (!CosObjEqual(c osPDAnnot, CosNewNull()))
{
const CosObj cosString = CosDictGet(cosP DAnnot,
ASAtomFromStrin g("Contents") );
// Ensure valid CosString
if (!CosObjEqual(c osString, CosNewNull()) && CosString ==
CosObjGetType(c osString))
{
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
4363
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 files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have any solutions?
1
2918
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 ${ORACLE_HOME}/rdbms/demo int main() {
4
2356
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 Studio .NET 2003 with the following error message "c:\Code\C++\Projects\TrivialProj\loadDOMRaw.cpp(85): fatal error C1010: unexpected end of file...
0
1510
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. ---------------------------------------------------------------------------- ---- Compilation Error
0
2108
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 Microsoft Visual C++ 6.0, which is why I cannot use the pre-built debug sysbol files for debugging. So it appears I must build PHP. I grabbed build...
1
5436
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 preprocessor directives but I dont know which one. Thanks, Arsalan
35
2999
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. In C#, there appears to be no analog. I have to compile all my .cs files into a single .dll. This has serious drawbacks in terms of...
1
2964
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 PortabilityImpl.hh:12, from Appender.cpp:10: .../include/log4cpp/Portability.hh:40: syntax error before `('
1
2061
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 that a user forgot to either install the external library
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.