Click to See Complete Forum and Search --> : Error Lnk Vc++ .net 2003


dominatore
May 31st, 2006, 08:16 AM
Hi guys I'm trying to create a mod in hl2.

I'm compiling with VC++ .net 2003 and when i try to link the project called client I got this error:

Linking...
Creating library .\cl_dll___Win32_HL2_Debug/client.lib and object .\cl_dll___Win32_HL2_Debug/client.exp
vgui_controls.lib(TextImage.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(MenuButton.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(PanelListPanel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(ScrollBarSlider.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(ProgressBar.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(MessageBox.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(MenuItem.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(CheckButton.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(URLLabel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(AnimatingImagePanel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(ImagePanel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(RadioButton.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(BuildGroup.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(FocusNavGroup.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(BuildModeDialog.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(BitmapImagePanel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(Menu.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(ComboBox.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(HTML.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(Tooltip.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(Button.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(Image.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(Frame.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(SectionedListPanel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(controls.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(RichText.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(Label.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(TextEntry.obj) : error LNK2001: unresolved external symbol __fltused
nvtc.lib(S3_quant.obj) : error LNK2019: unresolved external symbol __fltused referenced in function _CodeRGBBlock
vgui_controls.lib(Panel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(EditablePanel.obj) : error LNK2001: unresolved external symbol __fltused
vgui_controls.lib(AnimationController.obj) : error LNK2001: unresolved external symbol __fltused
teammenu.obj : error LNK2001: unresolved external symbol __fltused

and so on...I have over 2000 errors, help me!!

nolxev
May 31st, 2006, 03:58 PM
Have you read the SDK documentation? Before jump to write an Half Life 2 mod you should read the documentation, how to compile the core, what libs you need to link etc...

cilu
May 31st, 2006, 04:29 PM
As already pointed, you probably missed to link with some required library.

dominatore
June 5th, 2006, 05:27 AM
Problem solved, but now I have another one:
hl error LNK2019: unresolved external symbol _dont_use_fopen referenced in function "void __cdecl MyFunction_f(void)" (?MyFunction_f@@YAXXZ)

can you tell me something??

dominatore
June 5th, 2006, 05:29 AM
Sorry...here my code, it is very easy(it's just a test)

#include <convar.h>
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
//#include "tier0/memdbgon.h"

void MyFunction_f( void )
{
FILE *f;

if((f=fopen("prova.txt","w+"))!=NULL)
fwrite("a",sizeof(char),1,f);
else
DevMsg("not opened\n");

fclose(f);
}

humptydumpty
June 5th, 2006, 05:35 AM
What's the Problem here instead of Writing "prova.txt" specify Full path of your text File.

void MyFunction_f( void )
{
FILE *f;
if((f=fopen("C:\\txt1.txt","w+"))!=NULL)
fwrite("a",sizeof(char),1,f);
fclose(f);
}
int main()
{
MyFunction_f();
return 0;
}


Thanx

dominatore
June 5th, 2006, 06:03 AM
I tried, but that's not my problem...I have a problem linking the project...

in fact i have this error as I wrote before:

hl error LNK2019: unresolved external symbol _dont_use_fopen referenced in function "void __cdecl MyFunction_f(void)" (?MyFunction_f@@YAXXZ)

I think I have to change something in the linker option, but I don't know what

humptydumpty
June 5th, 2006, 06:10 AM
In Visual C++ .NET 2003, this error will be generated when /clr is used and the CRT is not linked into your executable.
have a look in MSDN for Error LNK2019

Thanx

dominatore
June 5th, 2006, 06:59 AM
In Visual C++ .NET 2003, this error will be generated when /clr is used and the CRT is not linked into your executable.
have a look in MSDN for Error LNK2019

Thanx

Nothing to do...I always have the same error...****!