Linking error in MSVC 2008?

You must add any . Cpp file to your project. For this problem you have to add file1.

Cpp to the project.

Up vote -1 down vote favorite share g+ share fb share tw.

I have a file structure like this: file1. H extern const char *build_info3; file1. Cpp #include "file1.

H" const char *build_info3 = { { "abc", "de", "feg" }, { ... }, ... }; file2. Cpp // Use build_info Now I am getting this erro under MSVC 2008 Express file2. Obj : error LNK2001: unresolved external symbol "char const * (* build_info)3" Looks like I am not able to link file1.obj.

Any idea how I can verify: Whether the obj is linked. It has the symbol defined. C++ visual-c++ linker link|improve this question asked Sep 26 '11 at 9:26deeJ1378 93% accept rate.

Is file1. Cpp added to the project? If not, you can add it by these steps: Project > Add Existing Item > Select file1.

Cpp – Masoud M. Sep 26 '11 at 9:28 @MasoudMontazeri Is there some way, I can check it? Consider me utter noob in MSVC.

– deeJ Sep 26 '11 at 9:32 Would it matter is the files were file1 was . C(not . Cpp) and file2 was .

Cpp? – deeJ Sep 26 '11 at 11:23.

You must add any . Cpp file to your project. For this problem you have to add file1.

Cpp to the project. Project > Add Existing Item > Select file1. Cpp and file2.cpp.

I did that and I can see both file1. Obj and file2. Obj in Release/ folder(may be they were already there?

). But the issue still remains. Is there a way to see which symbols are exported by file2.

Obj, like a 'nm file2. O' in linux? – deeJ Sep 26 '11 at 10:51 You can use /VERBOSE:LIB option (msdn.microsoft.com/en-us/library/wdsk6as...).

Or simply set: Project->Properties->Configuration properties->Linker->General->Show Progress->Display all progress messages – SChepurin Sep 26 '11 at 12:00.

Okay I found the problem, file1. Cpp was actually file.c. Only I enclosed that in extern C { .. } it is working fine.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions