Laserbeak43

hi i get about ten linker errors, the first one being:

Code Snippet
REXTest.obj : error LNK2019: unresolved external symbol _REXDelete referenced in function _main

what .lib will i need to link to get this working



Re: Visual C++ Language error LNK2019: What .lib do i need to link? (C)

Bruno van Dooren

What is REXDelete is that part of some 3d part toolkit you are using

If so, then you need to link against the supplied lib file for that toolkit. Something like REX.lib or so.

Have a look at the documentation for that toolkit for more information.





Re: Visual C++ Language error LNK2019: What .lib do i need to link? (C)

Laserbeak43

it comes with a .dll file. do i add that to the list i thought i was just supposed to have that in the working directory.




Re: Visual C++ Language error LNK2019: What .lib do i need to link? (C)

Laserbeak43

hmm just read the docs a bit more and i found something that says:

Code Snippet

To be able to link REX.C with a Windows application you must add ˇ±VERSION.LIBˇ± to your list of linker input

files.

i did that i put VERSION.LIB in the options section but it didn't make a difference.

along with having the .dll in my working directory, am i supposed to have it in my system32 directory as well






Re: Visual C++ Language error LNK2019: What .lib do i need to link? (C)

Bruno van Dooren

No, the DLL only has to be in your working folder. It is almost always a bad idea to put it in the system folder (pollution).

Btw, if your program doesn't link that has nothing to do with the location of the DLL.

Now that you added the lib file to your additional linker input in your project settings, is the error code still the same

Because if the error is that the linker cannot find the lib file, you have to also specify the location of the lib file in your additional include directories.

Could you post the current linker error and your linker command line





Re: Visual C++ Language error LNK2019: What .lib do i need to link? (C)

Laserbeak43

sorry for the late reply, i could have sworn that i had alerts set up for this topic.

Code Snippet

1>------ Build started: Project: RexTest, Configuration: Debug Win32 ------

1>Linking...

1>REXTest.obj : error LNK2019: unresolved external symbol _REXDelete referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXGetCreatorInfo referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXGetInfo referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXSetOutputSampleRate referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXCreate referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXUnloadDLL referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXLoadDLL referenced in function _main

1>REXTest.obj : error LNK2019: unresolved external symbol _REXRenderSlice referenced in function _ExtractAllSlices

1>REXTest.obj : error LNK2019: unresolved external symbol _REXGetSliceInfo referenced in function _ExtractAllSlices

1>C:\Documents and Settings\esiadmin\My Documents\Programming\Test App\RexTest\Debug\RexTest.exe : fatal error LNK1120: 9 unresolved externals






Re: Visual C++ Language error LNK2019: What .lib do i need to link? (C)

Simple Samples

As Bruno indicated, VC must be able to find the lib file; you might need to add the directory that the lib is in to the list of directories for VC to use. It might be possible that you added the lib file to the project options in the wrong place. Another possibility is that version.lib is not the correct library.