Author | Topic: Pbuild problem | |
---|---|---|
Carlos Antonio Beling | Pbuild problem on Fri, 19 Mar 2010 19:20:50 -0300 Good night. I tried all afternoon to solve this problem: . it has an error of unresolved external symbol (Unresolved.png) . the function is called normally (FunctionCall.png) . the function is defined (FunctionDefined.png) . the source files are build together (Project.png) . I tried using one lib instead of the source program without any result. For more details I attached all the project file (AllProject.zip) Please, how can I solve this problem? Beling Best regard Unresolved.png FunctionCall.png FunctionDefined.png Project.png AllProject.zip | |
Andreas Gehrs-Pahl | Re: Pbuild problem on Fri, 19 Mar 2010 20:01:51 -0400 Beling, >For more details I attached all the project file (AllProject.zip) The "MKdlls.xpj" file in your attached "AllProject.zip" file isn't the same as shown in your "Project.png". It contains the missing AutoDepend section, but it is missing any reference to the "ErrorCtr.prg" file, which obviously contains the missing routines. >Please, how can I solve this problem? Create a valid project file or include the missing file another way. You could compile it into a separate DLL and then add that DLL with a #Pragma directive to the appropriate files or add it to the Project file. It would also be simpler, if the source files would be in a common location, so that PBuild can find the corresponding OBJ files. PBuild is simply matching the dependencies of files based on the given File Names and Extensions. It isn't smart enough to use custom extensions or rename the output files or handle different directories for individual OBJ and LIB files, unless the path is given explicitly. But in that case, there will be no (auto-)dependency possible. You just have to choose what is more important, a simple Project file, or scattering your source files over several separate directories. I know what I prefer... -- Andreas --- --- Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net 415 Gute Street or: Andreas@DDPSoftware.com Owosso, MI 48867-4410 or: Andreas_Gehrs-Pahl@CrimeCog.com Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net --- --- | |
Carlos Antonio Beling | Re: Pbuild problem on Sat, 20 Mar 2010 10:57:13 -0300 Hello Andreas: good morning. Many thanks. The problem is that the program editor had an xPJ file and I was building the project that was in another one. :-[ Pbuild is working for me very well as is. Beling Peace and health Andreas Gehrs-Pahl escreveu: > Beling, > >> For more details I attached all the project file (AllProject.zip) > > The "MKdlls.xpj" file in your attached "AllProject.zip" file isn't the > same as shown in your "Project.png". It contains the missing AutoDepend > section, but it is missing any reference to the "ErrorCtr.prg" file, > which obviously contains the missing routines. > >> Please, how can I solve this problem? > > Create a valid project file or include the missing file another way. You > could compile it into a separate DLL and then add that DLL with a #Pragma > directive to the appropriate files or add it to the Project file. > > It would also be simpler, if the source files would be in a common > location, so that PBuild can find the corresponding OBJ files. PBuild is > simply matching the dependencies of files based on the given File Names > and Extensions. It isn't smart enough to use custom extensions or rename > the output files or handle different directories for individual OBJ and > LIB files, unless the path is given explicitly. But in that case, there > will be no (auto-)dependency possible. You just have to choose what is > more important, a simple Project file, or scattering your source files > over several separate directories. I know what I prefer... > > -- Andreas > > --- --- > Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net > 415 Gute Street or: Andreas@DDPSoftware.com > Owosso, MI 48867-4410 or: Andreas_Gehrs-Pahl@CrimeCog.com > Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net > --- --- | |
Andreas Gehrs-Pahl | Re: Pbuild problem on Sat, 20 Mar 2010 12:47:47 -0400 Beling, >The problem is that the program editor had an xPJ file and I was building >the project that was in another one. :-[ That's what I was thinking, too. >Pbuild is working for me very well as is. I had a chance to do some tests, and it looks like there shouldn't be any problem with the source files being in separate directories, and PBuild /g will even create a working Auto-Depend section for those files. So your project file should work -- as long as you include all the necessary files. -- Andreas --- --- Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net 415 Gute Street or: Andreas@DDPSoftware.com Owosso, MI 48867-4410 or: Andreas_Gehrs-Pahl@CrimeCog.com Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net --- --- | |
Carlos Antonio Beling | Re: Pbuild problem on Mon, 22 Mar 2010 18:42:04 -0300 Hello Andreas: good night. I'm doing a thing that I think is very interesting: Pbuild MyProject.xpn > LogFile.txt In LogFile.txt I can find all messages of Pbuild. Beling Cheers Andreas Gehrs-Pahl escreveu: > Beling, > >> The problem is that the program editor had an xPJ file and I was building >> the project that was in another one. :-[ > > That's what I was thinking, too. > >> Pbuild is working for me very well as is. > > I had a chance to do some tests, and it looks like there shouldn't be > any problem with the source files being in separate directories, and > PBuild /g will even create a working Auto-Depend section for those > files. So your project file should work -- as long as you include all > the necessary files. > > -- Andreas > > --- --- > Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net > 415 Gute Street or: Andreas@DDPSoftware.com > Owosso, MI 48867-4410 or: Andreas_Gehrs-Pahl@CrimeCog.com > Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net > --- --- |