From: <can...@li...> - 2008-03-27 08:35:12
|
Massimo, Actually I'm not familiar with VC, configure scripts etc. I suggested downloading hourly CVS, because 3.0-rc doesn't include emcy.c and emcy.h. And much newer CVS DOES include these. Please check /src folder inside CVS tar.gz archive. I guess TestMasterSlave project is old and wasn't updated. I think you don't need CanFestival.lib. All sources are available, plase check src, include and drivers folders. I can't help you with VC, I don't have it. Regards Edward Massimo wrote: > Hi Edward, > > After a > > ./configure --can=virtual --debug=ERR --target=win32 --os=windows > > I tried to rebuild the solution in the tgz file you said (in fact I'm > interested only in CanFestival-3 and TestMasterSlave projects) but > I found the same problems found before: > > 1-emcy.c and emcy.h not included in CanFestival-3 projects, causing lots > of errors for missing defines. I included them into the project and > after a build, the CanFestival-3.dll is OK > > 2-Trying to build TestMasterSlave I got 2 errors in master.c, because in > 2 if() blocks the > > UNS8 transmitiontype = ...; > > lines are not at the beginning of the block. After moving them at the > top of the respective blocks, the project compiles... > > 3- ...but cannot find CanFestival-3.lib so link fails. I tried to remove > the UNICODE from > properties/configuration/linker/general/"additional lib directories" > (In fact I don't know what's the use of UNICODE here, there is no a > directory called UNICODE... maybe this directive has to be set in some > other place) > In this way, the lib is found, but I still got the same linking errors I > told you yesterday. > > Cheers > Massimo > > > > > can...@li... ha scritto: >> Hi Massimo, >> >> you probably downloaded latest 3.0-rc3. Try downloading hourly CVS TGZ: >> >> http://lolitech.dyndns.org/CanFestival_3_hourly_CVS.tgz >> >> Regards >> Edward >> >> ----- Original Message ----- >> From: <can...@li...> >> To: "Mailing List CanFestival" <can...@li...> >> Sent: Wednesday, March 26, 2008 6:15 PM >> Subject: [Canfestival-devel] Linking error in compiling TestMasterSlave >> withVS2005 (CanFestival-3.vc8.sln) >> >> >>> Hi all, >>> >>> I'm trying to build the TestMasterSlave under VS2005 using the sln file >>> given. >>> The first problem I found is that emcy.c is not included in >>> CanFestival-3 project. >>> >>> The second is that TestMasterSlave finds 9 unresolved externals while >>> compiling (sorry for italian..): >>> >>> 1>Slave.obj : error LNK2019: riferimento al simbolo esterno >>> _EMCY_errorRecovered non risolto nella funzione _TestSlave_post_TPDO >>> 1>Slave.obj : error LNK2019: riferimento al simbolo esterno >>> _EMCY_setError non risolto nella funzione _TestSlave_post_TPDO >>> 1>TestMaster.obj : error LNK2001: simbolo esterno __post_emcy non >>> risolto >>> 1>TestSlave.obj : error LNK2001: simbolo esterno __post_emcy non risolto >>> 1>TestMaster.obj : error LNK2001: simbolo esterno __post_SlaveBootup non >>> risolto >>> 1>TestSlave.obj : error LNK2001: simbolo esterno __post_SlaveBootup non >>> risolto >>> 1>TestMasterSlave.obj : error LNK2019: riferimento al simbolo esterno >>> _LeaveMutex non risolto nella funzione _main >>> 1>TestMasterSlave.obj : error LNK2019: riferimento al simbolo esterno >>> _EnterMutex non risolto nella funzione _main >>> 1>../../Debug/TestMasterSlave.exe : fatal error LNK1120: 6 esterni non >>> risolti >>> >>> Does somebody know how to fix them? maybe something to do into >>> CanFestival-3.def I suppose, but being not a MS guru I prefer to ask >>> before. >>> >>> Thanks for attention. >>> >>> Massimo >>> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Canfestival-devel mailing list >>> Can...@li... >>> https://lists.sourceforge.net/lists/listinfo/canfestival-devel >>> >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Canfestival-devel mailing list >> Can...@li... >> https://lists.sourceforge.net/lists/listinfo/canfestival-devel >> >> > > > -- > =================================== > Giuseppe Massimo Bertani > SW/FW designer > > SPII spa > Viale della Resistenza 44 > 20090 Buccinasco (Milano) > Italy > > Phone: +39.2.48843139 > EMail: giu...@sp... > > Skype: gmbertani > > http://www.spii.it > =================================== > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Canfestival-devel mailing list > Can...@li... > https://lists.sourceforge.net/lists/listinfo/canfestival-devel > |