Hi Naman
You should first complete a full build of ASCEND with SCons build
scripts, in order to understand the various code linkages and shared
libraries (scons will show the GCC commands used build/link each file.
ASCEND is a large and complex codebase and simply loading all the source
files into Code::blocks will certainly not work.
In the examples you gave, the integrator.c and samplelist.c files must
be compiled into the same shared library as the files in the 'utilities'
subdirectory, for example 'error_reporter' is provided by error.c.
Cheers
JP
On 01/04/12 23:11, naman gupta wrote:
hi,
examples likeintegrator c source file,samplelist c source file in the
integrator directory(ascend\integrator).
when i complied the examples on code::blocks i got errors like
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `error_reporter'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `error_reporter'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `WildDimension'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `error_reporter'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `error_reporter'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_on'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_on'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_on'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_off'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_on'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_on'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_on'|
C:\Program
Files\CodeBlocks\MinGW\include\ascend\integrator\samplelist.o:samplelist.c||
undefined reference to `color_off'|
c:\program
files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(main.o):main.c||
undefined reference to `WinMain@16'|
||=== Build finished: 14 errors, 0 warnings ===|
but i have put ascend directory( extracted from svn) in the include
directory of code blocks. still i am getting errors
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users