×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

project generation error (Link Error)

project generation error (Link Error)

project generation error (Link Error)

(OP)
I tried to make an executable file for my powerbuilder application after regenerate. The regenaration step was done and fine.  When I try to build the project (exe file), I am getting link errors - the message said - 'Codegen compilation error, See file C:\Temp\Sumbill.log'.   When I open the file Sumbill.log,
it show this:  

CGEN: Compiling 'C:\TEMP\sumbill.c'
CGEN: Linking...

Since this message doesn't mean much I am having hardtime how to fix my application.
The powerbuilder I am using is version 6.5 and the OS is Window NT.

If you had any of this problem before and solved it please let me know.  

Thanks.

RE: project generation error (Link Error)

Thanks pgmguy

i have the same prob overhere. But the funny point is that this file does not exist on my system. I mean the location of the "log"-file powerbuilder gives me. In the meantime powerbuilder creats an obj file (somewhere!).

Can someone help me out with it

RE: project generation error (Link Error)

got it damn. The windows-shell tmp file was not existing anymore!

KKCS

RE: project generation error (Link Error)

Hi,

I am getting an error "CGEN:Failed to Find *.obj file, see log file for detail.", while building exe (DLL-machine code) from a windows 2000 machine.

I never had any problem in Windows NT.
I am using powerbuilder 8.0.

The log file tells the list of .obj files with name it is looking in the directory "Document And Setting\Administrator.User\LocalSettings\Temp" and couldn't find the file.

It has created a couple of *.c files corresponding to a pbl file.Looks like it fails to create obj files from the *.c files.

Does anyone know why it is doing like this ?
Only thing left to try is re-installing powerbuilder.

Appreciate any help.

Thanks
Joe



RE: project generation error (Link Error)

I had this exact problem.

The problem is that PowerBuilder uses the TEMP and TMP directories to load temporary files. It cannot handle the path:
"C:\Documents and Settings\john.smith\My Documents\. . ."
So just change the path for these directories to something simple like "C:\TEMP".


This is how you fix it in Windows XP Professional:
(The solution is similar in all operating systems.)

Under Control Panel | System | Advanced tab

Click on the "Environment Variables" button at the bottom of the tab. You are going to change the value for the temp variables in 4 places.

At the top, under "User Variables for user john.smith":

Click on the "TEMP" variable and change the value to "C:\TEMP". You do this by clicking the EDIT button.
Do the same for the "TMP" variable.

Next, under "System variables", change the values of the "TEMP" variable and the "TMP" variable to "C:\TEMP".

Make sure you have a "C:\TEMP" directory. You may need to reboot.

Done.

RE: project generation error (Link Error)

Hi,

Have a look at the PB7 compile problem thread and this may help.

Bill

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close