Hi

I am trying to compile and run my prog3.c program, but I am getting the compiler errors below. I have tried to reference the information by doing #include "node0.c" etc., but no luck. Any ideas on how to fix this problem? I attached the files below that I am working with. prog3.c is suppose to be the main simulator file. I am using DevC++ software. Any help is appreciated.


[Linker error] undefined reference to `rtupdate0'
[Linker error] undefined reference to `rtupdate1'
[Linker error] undefined reference to `rtupdate2'
[Linker error] undefined reference to `rtupdate3'
[Linker error] undefined reference to `linkhandler0'
[Linker error] undefined reference to `linkhandler1'
[Linker error] undefined reference to `linkhandler0'
[Linker error] undefined reference to `linkhandler1'
[Linker error] undefined reference to `rtinit0'
[Linker error] undefined reference to `rtinit1'
etc.

Hi

I am trying to compile and run my prog3.c program, but I am getting the compiler errors below. I have tried to reference the information by doing #include "node0.c" etc., but no luck. Any ideas on how to fix this problem? I attached the files below that I am working with. prog3.c is suppose to be the main simulator file. I am using DevC++ software. Any help is appreciated.


[Linker error] undefined reference to `rtupdate0'
[Linker error] undefined reference to `rtupdate1'
[Linker error] undefined reference to `rtupdate2'
[Linker error] undefined reference to `rtupdate3'
[Linker error] undefined reference to `linkhandler0'
[Linker error] undefined reference to `linkhandler1'
[Linker error] undefined reference to `linkhandler0'
[Linker error] undefined reference to `linkhandler1'
[Linker error] undefined reference to `rtinit0'
[Linker error] undefined reference to `rtinit1'
etc.

Hi Ninja,

You did some basic mistake as below,

  • Including the file to the main program
  • Redefined variables
  • function declaration

I've compiled and executed in Visual studio with modification and
the

mmm = 2147483647;

is not dependent with my system so i tested with the

avg = 250.0/1000.0;

to check the program.It built and executed fine.

I've attached the modified file. Prog.c is the main file. Just place all the other files in same directory and execute only the Prog3.c file since i've include all other files in prog3.c file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.