Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: C compilation problem

C compilation problem 8 months 1 week ago #12105

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Hi,
I tried to make a C compilation. I made the tutorial in paragraph 11 of the DG.
When I make a make, I get a return "No rules to make the target".

Make2.png


I also had to put the full file paths in the MakeFile because I had a circular dependency return.

Make3.png


Make1.png


Folder.png





Thanks for your help.

Phil
The administrator has disabled public write access.

C compilation problem 8 months 1 week ago #12107

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Phil,

It seems as if $pwr_exe and $pwrp_src are not defined. They should be defined when you attach the project with
> sdf testm221

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: Phil19

C compilation problem 8 months 1 week ago #12108

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Hi

It works thank you very much

/Phil
The administrator has disabled public write access.

C compilation problem 7 months 3 weeks ago #12117

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Good morning,

I have a problem building the project on bus 999 from the development station. Everything is going well with the SRV_PROVIEW operator station which is the main station. The pc_GTC operator station does not use the C code mailfunc().
I got a return during the workBench of the type “undefined reference to “mailfunc”. On the other hand, I don't have this error during the build on PRD001...
An idea ?
Thanking you

Phil


Global.jpg
The administrator has disabled public write access.

C compilation problem 7 months 3 weeks ago #12120

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Phil,

PlcProcess in BuildOptions should be the name of the PlcProcess object in the node hierarchy, that is 'Plc' by default. If this is not correct the opt-file generated by BuildOptions is ignored. You should have the message '-- Using local option file ...' in the terminal window when you build the node if the opt-file is found.

/Claes
The administrator has disabled public write access.

C compilation problem 7 months 3 weeks ago #12122

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Hello Claes,
Thank you for your answer. My PLC has the correct name "MAIL".

Directory.png


The BuidOptions object is a true copy of the one put in the PRD1 bus. I have no build problems on the PRD1.
The VolVmgtc is the volume of the main Operator station. It contains the PLC MAIL. The VolPcGtc volume is a remote operator station with MountObjects. PLC MAIL is not distributed on this station.


PLC.png



My Build problem is only on the philippe_VirtualBox development station.

Console.png


WorkBench.png



Thanks again for your help

\Phil
Last Edit: 7 months 3 weeks ago by Phil19.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.375 seconds