Question

Hello Community

Today I was trying to build the library and run example1.cpp using VS2008 without JAM utility. I followed all the steps that was mentioned for the above namely a) I Installed Regex support 2.7 under C:\proramfiles\GNUwindows a) I added the path in envoirnment variables of windows 7. a) I created the project and added the command line with all include directories in project properties a) I even added all libraries in VC environment directories

Then I build the project for Win32 console (example1.cpp) and got following Linking errors : Please Help , I have listed some link errors.

=========== ERRORS==================
>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>   Creating library C:\Users\priyank\Documents\Visual Studio 2008\Projects\Cons1\Debug\Cons1.lib and object C:\Users\priyank\Documents\Visual Studio 2008\Projects\Cons1\Debug\Cons1.exp
1>Position.obj : error LNK2001: unresolved external symbol __imp__regexec
1>TimeString.obj : error LNK2001: unresolved external symbol __imp__regexec
1>UnixTime.obj : error LNK2001: unresolved external symbol __imp__regexec
1>YDSTime.obj : error LNK2001: unresolved external symbol __imp__regexec

1>Cons1 - 49 error(s), 383 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

-- PriyankKumar - 24 Nov 2009

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I would go back and look at the instruction about how to install regex and how to setup your environment correctly to find regex. Since you are not getting compile errors, it would seem you have the regex .h files installed. However, it is not able to find the regex library on link. Thus, I would check to see if the library is installed and if you have the path correct in your link library path in your environment.

-- RickMach - 24 Nov 2009

Thanks for the prompt reply. I lately figured out how to do it , I did mentioned the path correctly in the environment variable but forgot to specify the library. Later I did and it worked correctly. Also in this process of learning I figured out following

a) The win32 download that is available in sourceforge doesnt work , we need to compile the library once again to make it work

b) Library compiles in a single file correctly without any errors if the regex include files and library files are set correctly. So I compiled a single file GPStk.lib and now using that , However the include files needed for running application can be take from the win32 installable provided here.

I feel as now the environment is set , I can use it faithfully.

Thanks again Rick

-- PriyankKumar - 24 Nov 2009 No such template def TMPL:DEF{PROMPT:supportquery}

Topic revision: r3 - 24 Nov 2009, PriyankKumar
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback