You are here

run error

Hi,scott I'm a new user of w2 and have download new version 3.1. After installed Array visualizer1.5, w2_cvf.f can be compiled , but appearing error information as follows when I run it. I dont know what's the problem. w2_cvf.obj error LNK2001 unresolved external symbol __QWINSetAboutString w2_cvf.obj error LNK2001 unresolved external symbol __f_getwindowconfig@4 w2_cvf.obj error LNK2001 unresolved external symbol __setbkcolor w2_cvf.obj error LNK2001 unresolved external symbol __settextcolor w2_cvf.obj error LNK2001 unresolved external symbol __setcolor w2_cvf.obj error LNK2001 unresolved external symbol __QWINSetExit w2_cvf.obj error LNK2001 unresolved external symbol __rectangle w2_cvf.obj error LNK2001 unresolved external symbol __floodfill_w Debug/w2_cvf.exe fatal error LNK1120 8 unresolved externals Error executing link.exe. I'm eagering for your help. my regards zy [addsig]
Forums: 

Zy, You should not need to recompile the project, which is what you are trying to do as these are linker errors. Use the executable provided with the download. If you have made changes to the code and are having to recompile (you shouldn't as you say you are a new user), then you need to set this up as a QuickWin project. All of the errors involve the linker not being able to find the subroutines, e.g. setbkcolor, settextcolor, etc. Tom[addsig]

Thanks,Tom, the executable file is good, but the source code donot work yet, can I use source code on my windowsxp system, if I want to do some changes on it? by the way, w2 verson 2.0 runs smoothly. with regards zy[addsig]

Zy, I don't understand what you mean by the source code doesn't work yet. Again, with V3.1, you do not need to compile the source code in order to use the model. However, if you do compile the source code, you have to make certain that the project type is set to a QquckWin application when you initially set up your workspace. When you set the project to this type, it makes certain that certain libraries are linked into the project. The unresolved external error messages you are receiving are a result of the linker not being able to find the QuickWin subroutine calls. Why are you trying to compile the source code when you don't need to in order to run the model?[addsig]

yeah, you are right, I made the wrong project. Now, other questions, what does segment orientations PHI0 mean? In what coordinate? and how to caculate layer width if I only have lateral transects data? Must I write a programe by myself or somewhere has a useful tool? my regards zy [addsig]

PHI0 is the segment orientation in radians where a segment oriented from N to S is 0 rad, E to W pi/2 rads, etc. This is explanined in more detail in the User's Manual. Your second question is a big can of worms, but I do not have a program that readily takes cross sections and generates average widths. HEC had a program at one time that took cross section data and generated average widths. It was called GEDA, but it was very cumbersome to use. I expect any good GIS person could do this fairly easily. We plan on working on a grid generator that quickly allows you to develop a computational grid, but this is in the future. There are other grid generation programs out there, but I am not familiar with them.[addsig]